[asterisk-users] SIP trunks going to the wrong context

Julian Beach jb_soft at trink.co.uk
Fri Dec 15 11:58:57 CST 2017


On Thursday, December 14, 2017, 10:05:23 PM, Tony Mountifield
(tony at softins.co.uk) wrote:

> So I think you really do need to have a single peer section for all sipgate
> calls, pointing to one sipgate context in your dialplan that contains all
> your various extensions like se2489, sj0151, etc.

That is what I do - all my incoming calls (which originate from the
same IP and Port) go into a single context in extensions.conf, from
where they are directed into individual call handlers depending on the
DCID

[incoming calls]

exten => 44********20,n,Goto(handler-a,s,1)
exten => 44********00,n,Goto(handler-b,s,1)
exten => 44********21,n,Goto(handlet-c,s,1)
exten => 44********22,n,Goto(handler d,s,1)

-- 
Best regards,
 Julian                            mailto:jb_soft at trink.co.uk




More information about the asterisk-users mailing list