[Spce-user] Inbound rules

Andreas Granig agranig at sipwise.com
Wed Apr 13 17:11:06 EDT 2011


Hi Sébastien,

On 04/13/2011 10:03 PM, Sébastien Cramatte wrote:
> Does it possible to redirect inbound traffic to another (eg: asterisk) 
> using  peering inbound rule ?
> 
> I've tried to write a very generic rule for this but unfortunately it
> doesn't works

The rewrite rules only work on the user part, so crafting something like
this...

> Match pattern =  ^([1-9][0-9]+)$
> Replacement pattern = \1 at asterisk.mydomain.com

... will result into sip:xxxx at asterisk.mydomain.com@original.domain.com,
which in turn causes the error you encountered.

> What I would like to achieve is a transparent routing to/from  asterisk 
> without need to create a subscriber on spce. 

This is, unfortunately, not possible out of the box. You could hardcode
it though in route[ROUTE_FIND_CALLEE] in
/etc/ngcp-config/templates/etc/kamailio/proxy.cfg, then execute "ngcpcfg
apply" to regenerate the config files.

We'll consider this for a future release since it sounds like a useful
feature.

Andreas

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 900 bytes
Desc: OpenPGP digital signature
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20110413/b3c2de48/attachment-0001.asc>


More information about the Spce-user mailing list