Registering Multiple Trunks to Service Provider

Home » Asterisk Users » Registering Multiple Trunks to Service Provider
Asterisk Users 1 Comment

We have multiple entries like the one below in our users.conf file… where the username. Contact and secret changes for different customers and we register on their behalf to the Service Provider.

For the trunk below: when the call is placed out, Asterisk (1.4.18) sends the username of “abc.com” in the MD5 Auth …..which obviously does not match the trunk setup for this Customer with our Service Provider (username below is 3035551122)

I don’t see anywhere any config file the username = abc.com ….where could the asterisk be picking it up from?

We have more than 10 such entries (all with same host = provider.sip.com value) and when as INVITE is challenged, the Asterisk does match the correct trunk and seems to send out correct Auth credentials…but not the one below..

[trunk_1]
;register to SP
allow = ulaw
;context = test
dialformat = ${EXTEN:1}
canreinvite = no
hasexten = no
hasiax = no
hassip = yes
host = provider.sip.com
insecure = very
port = 5060
registeriax = no
registersip = yes
trunkname = test
trunkstyle = customvoip
username = 3035551122
disallow = gsm,g726,alaw
contact = 3035551122
secret = xxxxx

One thought on - Registering Multiple Trunks to Service Provider

  • Any pointers on this one?

    href=”mailto:asterisk-users-bounces@lists.digium.com”>asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Ujjval Karihaloo
    Sent: Monday, October 04, 2010 12:33 PM

    We have multiple entries like the one below in our users.conf file… where the username. Contact and secret changes for different customers and we register on their behalf to the Service Provider.

    For the trunk below: when the call is placed out, Asterisk (1.4.18) sends the username of “abc.com” in the MD5 Auth …..which obviously does not match the trunk setup for this Customer with our Service Provider (username below is 3035551122)

    I don’t see anywhere any config file the username = abc.com ….where could the asterisk be picking it up from?

    We have more than 10 such entries (all with same host = provider.sip.com value) and when as INVITE is challenged, the Asterisk does match the correct trunk and seems to send out correct Auth credentials…but not the one below..

    [trunk_1]
    ;register to SP
    allow = ulaw
    ;context = test
    dialformat = ${EXTEN:1}
    canreinvite = no
    hasexten = no
    hasiax = no
    hassip = yes
    host = provider.sip.com
    insecure = very
    port = 5060
    registeriax = no
    registersip = yes
    trunkname = test
    trunkstyle = customvoip
    username = 3035551122
    disallow = gsm,g726,alaw
    contact = 3035551122
    secret = xxxxx