Connecting Multiple Asterisk Instances Getting “Unable To Create Channel Of Type ‘SIP'”

Home » Asterisk Users » Connecting Multiple Asterisk Instances Getting “Unable To Create Channel Of Type ‘SIP'”
Asterisk Users 4 Comments

Hi,

I’m trying to connect two asterisk instances using the method described here..

http://ofps.oreilly.com/titles/9781449332426/asterisk-OutsideConn.html

under the section

“Connecting two Asterisk systems together with SIP”

I have an user named venu in serverA and vijay in serverB

the serverA ip is 192.168.0.35 & serverB is 192.168.0.36

Here are the details of the config files (extension & sip):
http://paste.kde.org/737888

When i make a call to extension 998 in using user as venu, here is the output i get..

http://paste.kde.org/737894

The problem is that, I’m getting the
*Unable to create channel of type ‘SIP’ (cause 20 – Subscriber absent)*

but I want to make a call to vijay.. can anyone please let me know where I
am going wrong?

I have the same error when I try to make a call from sip client to a analog phone in a single server asterisk setup… :-\

I’m running Asterisk 11.3 on Ubuntu 12.04 on a KVM virtualized instance..

4 thoughts on - Connecting Multiple Asterisk Instances Getting “Unable To Create Channel Of Type ‘SIP'”

  • The clue is
    21. — Executing [999@incoming:2] Dial(“SIP/serverA-00000004”,
    “SIP/vijay@serverB”) in new stack
    24. getaddrinfo(“serverB”, “(null)”, …): Name or service not known
    25. No such host: serverB

    I believe extension 999 in server B is wrong. It should be;

    # extensions.conf in serverB
    [incoming]
    exten => 999,1,Answer()
    exten => 999,n,Dial(SIP/vijay)
    exten => 999,n,HangUp()

    Alec

  • @Alec,

    Now I can dial user vijay but the call gets cut after a few seconds and i get this error in the serverA’s console..

    http://paste.kde.org/737924

    PS: recolgo is the hostname of the system from which I am initialting the call (using a sip client)

    Thanks

  • From http://paste.kde.org/737924
    SecurityEvent=”ChallengeSent”,EventTV=”1367741794-435078″,Severity=”Informat ional”,Service=”SIP”,EventVersion=”1″,AccountID=”sip:venu@192.168.0.35″,Sess ionID=”0x337bf68″,LocalAddress=”IPV4/UDP/10.10.1.3/5060″,RemoteAddress=”IPV4
    /UDP/192.168.1.90/5060″,Challenge=”41cdcd16″

    ^^^ The other networks confuse me, and perhaps asterisk.

    Perhaps

    serverA:sip.conf udpbindaddr2.168.0.35 ; IP address to bind UDP listen socket to
    (0.0.0.0 binds to all)
    ; Optionally add a port number,
    192.168.1.1:5062 (default is port 5060)

    serverB:sip.conf udpbindaddr2.168.0.36 ; IP address to bind UDP listen socket to
    (0.0.0.0 binds to all)
    ; Optionally add a port number,
    192.168.1.1:5062 (default is port 5060)

    Alec