In article <1513290358.2926.4.ca...@linuxista.com>,
Frank Vanoni <mailingl...@linuxista.com> wrote:
> I don't know if it applies to your problem, but I also had some
> troubles with multiple account on same SIP provider. 
> Here what works for me:
> 
> 
> In sip.conf:
> 
> 
> register => 111111:qwe...@sip.provider.zz/111111 ; Trunk1
> register => 222222:asd...@sip.provider.zz/222222 ; Trunk2
> register => 222222:yxc...@sip.provider.zz/222222 ; Trunk3
> 
> 
> [trunk1]
> type=friend
> host=sip.provider.zz
> defaultuser=111111
> secret=qwertz
> canreinvite=no
> insecure=invite
> nat=force_rport,comedia
> qualify=yes
> context=trunkincoming
> description=Trunk 1
> 
> [trunk2]
> type=friend
> host=sip.provider.zz
> defaultuser=222222
> secret=asdfgh
> canreinvite=no
> insecure=invite
> nat=force_rport,comedia
> qualify=yes
> context=trunkincoming
> description=Trunk 2
> 
> [trunk3]
> type=friend
> host=sip.provider.zz
> defaultuser=333333
> secret=yxcvbn
> canreinvite=no
> insecure=invite
> nat=force_rport,comedia
> qualify=yes
> context=trunkincoming
> description=Trunk 3
> 
> 
> 
> In extensions.conf:
> 
> [trunkincoming]
> exten => 111111,1,GoTo(firstline,111111,1)
> exten => 222222,1,GoTo(secondline,222222,1)
> exten => 333333,1,GoTo(thirdline,333333,1)
> 
> [firstline]
> exten => 111111,1,Dial(SIP/officephone,120,m)
> 
> [secondline]
> exten => 222222,1,Dial(SIP/livingroomphone,120,m)
> 
> [thirdline]
> exten => 333333,1,Dial(SIP/bedroomphone,120,m)

But because you have all three of your trunk peers pointing to the
same context, you don't necessarily know whether the inbound calls
are matching different peers or all the same one.

If you had each trunk pointing at a different context, you would
probably run into the same problem as the OP.

Cheers,
Tony
-- 
Tony Mountifield
Work: t...@softins.co.uk - http://www.softins.co.uk
Play: t...@mountifield.org - http://tony.mountifield.org

-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
      https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to