[Spce-user] re-route inbound call

Marco Capetta mcapetta at sipwise.com
Thu May 11 03:15:33 EDT 2023


Hi Marcos,

to connect an IPBX system you can also use a simple subscriber, you 
don't need a peer.
You can just assign the root number to the subscriber, then the system 
will locate the subscriber by longest matching prefix.
Please refer to this section of the handbook: 
https://www.sipwise.com/doc/mr11.3.1/spce/ce/mr11.3.1/advancedconfiguration/advancedconfiguration.html#inbound-calls-routing

In case you really need to configure the IPBX as a peer, then consider 
to activate 'kamailio.proxy.allow_peer_relay' param in the config.yml 
file. This will allow to relay calls coming from peers to other peers.

Thanks
Marco


On 10/05/23 16:44, Marcos Pablo Pytel via Spce-user wrote:
> Hello!
>
> I have 2 sip peerings, one to the PSTN and other to IPBX.
> How I can configure the sipwise to when I receive a call from PSTN, it 
> re route the call to other peer (IPBX)
>
>
> May 10 11:00:07 spce proxy[31695]: NOTICE: <script>: Call from PSTN - 
> R=sip:428355 at x.x.x.x ID=1833815809 at x.x.x.x UA='Synway/5.3.2.1'
> May 10 11:00:07 spce proxy[31695]: NOTICE: <script>: Inbound peering 
> group '1' matched, looking up peer host - R=sip:428355 at x.x.x.x 
> ID=1833815809 at x.x.x.x UA='Synway/5.3.2.1'
> May 10 11:00:07 spce proxy[31695]: NOTICE: <script>: Selected peering 
> host id '1' as inbound peer - R=sip:428355 at x.x.x.x 
> ID=1833815809 at x.x.x.x UA='Synway/5.3.2.1'
> May 10 11:00:07 spce proxy[31695]: NOTICE: <script>: Dialog managed, 
> lua_dlg_callid:[1833815809 at x.x.x.x] - R=sip:428355 at x.x.x.x 
> ID=1833815809 at x.x.x.x UA='Synway/5.3.2.1'
> May 10 11:00:07 spce proxy[31695]: NOTICE: <script>: User-Provided CLI 
> '2972427000' taken from From-User - R=sip:428355 at x.x.x.x 
> ID=1833815809 at x.x.x.x UA='Synway/5.3.2.1'
> May 10 11:00:07 spce proxy[31695]: NOTICE: <script>: Network-Provided 
> CLI '2972427000' taken from From-User - R=sip:428355 at x.x.x.x 
> ID=1833815809 at x.x.x.x UA='Synway/5.3.2.1'
> May 10 11:00:07 spce proxy[31695]: NOTICE: <script>: Setting 
> '2972427000 at x.x.x.x' as initiating user-provided CLI - 
> R=sip:428355 at x.x.x.x ID=1833815809 at x.x.x.x UA='Synway/5.3.2.1'
> May 10 11:00:07 spce proxy[31695]: NOTICE: <script>: Setting 
> '2972427000 at x.x.x.x' as initiating network-provided CLI - 
> R=sip:428355 at x.x.x.x ID=1833815809 at x.x.x.x UA='Synway/5.3.2.1'
> May 10 11:00:07 spce proxy[31695]: NOTICE: <script>: Rewriting called 
> party '428355' to '542972428355' - R=sip:428355 at x.x.x.x 
> ID=1833815809 at x.x.x.x UA='Synway/5.3.2.1'
> May 10 11:00:07 spce proxy[31695]: NOTICE: <script>: Callee is not 
> local - R=sip:542972428355 at x.x.x.x ID=1833815809 at x.x.x.x 
> UA='Synway/5.3.2.1'
> May 10 11:00:07 spce proxy[31695]: NOTICE: <script>: Call to unknown 
> user - R=sip:542972428355 at x.x.x.x ID=1833815809 at x.x.x.x 
> UA='Synway/5.3.2.1'
> May 10 11:00:07 spce proxy[31695]: NOTICE: <script>: Setting acc 
> source-leg for uuid '0': 
> '0|2972427000|x.x.x.x|2972427000|||0|||0|call|127.0.0.1|1683727207.068303||||||||||||2972427000||||' 
> - R=sip:542972428355 at x.x.x.x ID=1833815809 at x.x.x.x UA='Synway/5.3.2.1'
>
> Thank you in advance!
>

-- 
*Marco Capetta *
R&D Manager

Sipwise GmbH | an ALE Company <http://www.sipwise.com>
c/o ALE International – Austria Branch
Saturn Tower
Leonard-Bernstein-Straße 10
1220 Vienna, Austria

Email: mcapetta at sipwise.com
Website: www.sipwise.com <http://www.sipwise.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20230511/89273056/attachment-0001.html>


More information about the Spce-user mailing list