[asterisk-users] PJSIP issues with handling incoming calls

Administrator TOOTAI admin at tootai.net
Tue Sep 2 02:35:10 CDT 2014


Le 02/09/2014 08:47, Nick Awesome a écrit :
> Hello guys.

Hi

>
> Have 2 external numbers that required registration on provider server,
>
> trunk1: 734322600*05*@80.75.132.66
> trunk2: 734322600*50*@80.75.132.66
>
> Thing is I can’t figure out how to route them to different IVRs
>
> by default Asterisk can’t match endpoint
>
> Request from '<sip:+ 734322600*05*@80.75.132.66>' failed for
> '80.75.132.66:5060' (callid: 50e9132765782741404408k2469rmwp) - No
> matching endpoint found
>
> Can’t set /identify /by IP because they got the same ip.
>
> Is there way to configure asterisk so incoming calls from same IP but
> different ID will use different contexts?

You have to register to the gateway with each account user and password like

sip.conf

register = 734322600*05*:password1 at myProvider/734322600*05*
register = 734322600*50*:password2 at myProvider/734322600*50*

[myProvider]
type=peer
host=80.75.132.66
context=from-myProvider
...

extensions.conf

[from-myProvider]
exten = 734322600*05*,1,NoOp(Incoming call to 734322600*05*)
...

exten = 734322600*50*,1,NoOp(Incoming call to 734322600*50*)
...



More information about the asterisk-users mailing list