[asterisk-users] Communication between servers

damiano bertuna damianobertuna at gmail.com
Tue Feb 20 01:24:03 MST 2007


This is my problem:

I have two server,

            server 1

                        in iax.conf

                        [general]
                        register=> isdn_server:isdn at 169.254.68.200



                        [voip_server]
                        type=friend
                        username=damiano_voip
                        auth=md5
                        host=dynamic
                        secret=voip
                        qualify=yes

                        in extensions.conf
                        exten=>_50XXX,1,Dial(IAX2/voip_server/${EXTEN:2},30)


           server 2

                       in iax.conf

                       [general]
                       register=> voip_server:voip at 169.254.68.251

                       [isdn_server]
                       type=friend
                       user=damiano_isdn
                       auth=md5
                       host=dynamic
                       secret=isdn
                       qualify=yes

                       in extensions.conf
                       exten=>_45XXX,1,Dial(IAX2/isdn_server/${EXTEN:2},30)

I do correctly calls between the two server, but in the server 1 CLI I see
this:

(calling from a phone registered with server 2 to a phone registered with
server 1)

    -- Accepting UNAUTHENTICATED call from 169.254.68.200:
       > requested format = gsm,
       > requested prefs = (gsm),
       > actual format = gsm,
       > host prefs = (gsm),
       > priority = mine
    -- Executing ChanIsAvail("IAX2/voip_server-14",
"IAX2/202&SIP/202&mISDN/1/202") in new stack
    -- Hungup 'IAX2/202-16'
    -- Executing Dial("IAX2/voip_server-14", "IAX2/202|30") in new stack
    -- Called 202
    -- Call accepted by 169.254.68.121 (format gsm)
    -- Format for call is gsm
    -- IAX2/202-19 is ringing
    -- Hungup 'IAX2/202-19'



Why do I see UNAUTHENTICATED call?

while in the sever 2 CLI I see:

    -- Accepting AUTHENTICATED call from 169.254.68.121 :
       > requested format = gsm,
       > requested prefs = (),
       > actual format = gsm,
       > host prefs = (gsm),
       > priority = mine
    -- Executing Dial("IAX2/200-3", "IAX2/isdn_server/202|30") in new stack
    -- Called isdn_server/202
    -- Call accepted by 169.254.68.251 (format gsm)
    -- Format for call is gsm
    -- IAX2/isdn_server-6 is ringing


If I type "iax2 show registry" in the server 2 CLI I see:

prova*CLI> iax2 show registry
Host                  Username    Perceived             Refresh  State
169.254.68.251:4569   voip_serve  169.254.68.200:4569        60  Registered

and in the server 1 CLI I see:

prova*CLI> iax2 show registry
Host                  Username    Perceived             Refresh  State
169.254.68.200:4569   isdn_serve  169.254.68.251:4569        60  Registered

Thanks for your help, Damiano.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070220/c5075a3c/attachment.htm


More information about the asterisk-users mailing list