[asterisk-users] PJSIP issues with handling incoming calls

Nick Awesome jleed at me.com
Tue Sep 2 02:38:43 CDT 2014


So there is no way to do that with pjsip?

On 02 Sep 2014, at 11:35, Administrator TOOTAI <admin at tootai.net> wrote:

> 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*)
> ...
> 
> -- 
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>              http://www.asterisk.org/hello
> 
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>  http://lists.digium.com/mailman/listinfo/asterisk-users




More information about the asterisk-users mailing list