[SOLVED] issue with carrier setup

Hi everyone and thanks in advance .

I can’t make call with my server through sipgate.co.uk. I’m using goautodial 2.1, vicidial 2.4 and asterisk 1.4.

Here my config:

Registration String

userid:pw@sipgate.co.uk:5060/userid

Account Entry:

[sipgate]
host=sipgate.co.uk
fromuser=userid
secret=pw
type=peer
disallow=all
allow=all
context=from-trunk
insecure=very
username=userid
host=dynamic
allowguest=yes
registertrying=yes
nat=auto

Globals String:
SIPGATE= SIP/sipgate

Dialplan Entry:

exten => _x.,1,AGI
exten => _x.,2,Dial(SIP{sipgate}/${EXTEN:1},55,tTor)
exten => _x.,3,Hangup

Active: y

sip show peers

CLI:

[Apr 20 03:35:46] – Executing [008000556688@default:1] AGI in new stack
[Apr 20 03:35:46] – AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
[Apr 20 03:35:46] – Executing [008000556688@default:2] Dial(“SIP/8001-00000001”, “SIP/08000556688||tTo”) in new stack
[Apr 20 03:35:47] WARNING23125: chan_sip.c:3225 create_addr: No such host: 08000556688
[Apr 20 03:35:47] WARNING23125: app_dial.c:1310 dial_exec_full: Unable to create channel of type ‘SIP’ (cause 20 - Unknown)
[Apr 20 03:35:47] Everyone is busy/congested at this time (1:0/0/1)
[Apr 20 03:35:47] – Executing [008000556688@default:3] Hangup(“SIP/8001-00000001”, “”) in new stack
[Apr 20 03:35:47] Spawn extension (default, 008000556688, 3) exited non-zero on ‘SIP/8001-00000001’
[Apr 20 03:35:47] – Executing [h@default:1] DeadAGI(“SIP/8001-00000001”, “agi://127.0.0.1:4577/call_log–HVcauses–PRI-----NODEBUG-----20-----CHANUNAVAIL----------”) in new stack
[Apr 20 03:35:47] – AGI Script agi://127.0.0.1:4577/call_log–HVcauses … ---------- completed, returning 0

I tried to dial 008000556688.
I don’t understand why asterisk think that the number that i tried to dial is an host and not sipgate instead.* " WARNING21981: chan_sip.c:3225 create_addr: No such host: 080000556688", if i try to dial an other number like 08000545564 for exemple I will have this “WARNING21981: chan_sip.c:3225 create_addr: No such host: 08000545564” That strange!!
And how to fix “WARNING23125: app_dial.c:1310 dial_exec_full: Unable to create channel of type ‘SIP’ (cause 20 - Unknown)”

If you have any advice, please let me know. cheers.

You are missing an slash and the dollar sign in your dial command. You have

Try with

[quote=“navaismo”]You are missing an slash and the dollar sign in your dial command. You have

Try with

Thanks but it’s still not working. :smiling_imp:

[Apr 20 05:41:33] -- Executing [008000556688@default:1] AGI("SIP/8001-00000000", "agi://127.0.0.1:4577/call_log") in new stack [Apr 20 05:41:33] -- AGI Script agi://127.0.0.1:4577/call_log completed, returning 0 [Apr 20 05:41:34] -- Executing [008000556688@default:2] Dial("SIP/8001-00000000", "SIP/08000556688||tTo") in new stack [Apr 20 05:41:34] WARNING[6528]: chan_sip.c:3225 create_addr: No such host: 08000556688 [Apr 20 05:41:34] WARNING[6528]: app_dial.c:1310 dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Unknown) [Apr 20 05:41:34] == Everyone is busy/congested at this time (1:0/0/1) [Apr 20 05:41:34] -- Executing [008000556688@default:3] Hangup("SIP/8001-00000000", "") in new stack [Apr 20 05:41:34] == Spawn extension (default, 008000556688, 3) exited non-zero on 'SIP/8001-00000000' [Apr 20 05:41:34] -- Executing [h@default:1] DeadAGI("SIP/8001-00000000", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----20-----CHANUNAVAIL----------") in new stack [Apr 20 05:41:34] -- AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----20-----CHANUNAVAIL---------- completed, returning 0

[Apr 20 05:41:34] -- Executing [008000556688@default:2] Dial("SIP/8001-00000000", "SIP/08000556688||tTo") in new stack [Apr 20 05:41:34] WARNING[6528]: chan_sip.c:3225 create_addr: No such host: 08000556688

this clearly says that you still have an error in the dial command.
did you issue “dialpan reload” or asterisk restart after making changes in dialplan?
or maybe the variable ${sipgate} is empty.

[quote=“elphssp”][Apr 20 05:41:34] -- Executing [008000556688@default:2] Dial("SIP/8001-00000000", "SIP/08000556688||tTo") in new stack [Apr 20 05:41:34] WARNING[6528]: chan_sip.c:3225 create_addr: No such host: 08000556688

this clearly says that you still have an error in the dial command.
did you issue “dialpan reload” or asterisk restart after making changes in dialplan?
or maybe the variable ${sipgate} is empty.[/quote]

Hi thanks for your reply, yes I did reload my the dial plan but still the issue. And dialplan variable is above my knowledge, I’ll check google.

Call test

[Apr 20 09:57:08] -- Executing [008000556688@default:1] AGI("SIP/8001-00000001", "agi://127.0.0.1:4577/call_log") in new stack [Apr 20 09:57:08] -- AGI Script agi://127.0.0.1:4577/call_log completed, returning 0 [Apr 20 09:57:08] -- Executing [008000556688@default:2] Dial("SIP/8001-00000001", "SIP/SIP/sipgate/08000556688|55|tTor)") in new stack [Apr 20 09:57:09] WARNING[6149]: chan_sip.c:3225 create_addr: No such host: SIP [Apr 20 09:57:09] WARNING[6149]: app_dial.c:1310 dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Unknown) [Apr 20 09:57:09] == Everyone is busy/congested at this time (1:0/0/1) [Apr 20 09:57:09] -- Executing [008000556688@default:3] Hangup("SIP/8001-00000001", "") in new stack [Apr 20 09:57:09] == Spawn extension (default, 008000556688, 3) exited non-zero on 'SIP/8001-00000001' [Apr 20 09:57:09] -- Executing [h@default:1] DeadAGI("SIP/8001-00000001", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----20-----CHANUNAVAIL----------") in new stack [Apr 20 09:57:10] -- AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----20-----CHANUNAVAIL---------- completed, returning 0

UPdate:

You were right I had a variable issue in the dialplan:

Old config:

exten => _x.,1,AGI(agi://127.0.0.1:4577/call_log) exten => _x.,2,Dial (sip/${sipgate}/${EXTEN:1},55,tTor)) exten => _x.,3,Hangup

New config:

exten => _x.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _x.,2,Dial(${sipgate}/${EXTEN:1},55,tTor))
exten => _x.,3,Hangup

But I still have

[Apr 20 10:12:21] WARNING[11069]: app_dial.c:1310 dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Unknown) [Apr 20 10:12:21] == Everyone is busy/congested at this time (1:0/0/1) [Apr 20 10:12:21] -- Executing [008000556688@default:3] Hangup("SIP/8001-00000005", "") in new stack [Apr 20 10:12:21] == Spawn extension (default, 008000556688, 3) exited non-zero on 'SIP/8001-00000005' [Apr 20 10:12:21] -- Executing [h@default:1] DeadAGI("SIP/8001-00000005", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----20-----CHANUNAVAIL----------") in new stack [Apr 20 10:12:21] -- AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----20-----CHANUNAVAIL---------- completed, returning 0

All right, Ill check google again, if you have any advice, please tell me. thanks a lot.

i think i realized what’s the catch.
“sipgate” doesn’t have to be a variable.
it is a “static” peer that is used as a trunk.
so the dial string has to look like:
exten => _x.,2,Dial (sip/sipgate/${EXTEN:1},55,tTor))

[quote=“elphssp”]i think i realized what’s the catch.
“sipgate” doesn’t have to be a variable.
it is a “static” peer that is used as a trunk.
so the dial string has to look like:
exten => _x.,2,Dial (sip/sipgate/${EXTEN:1},55,tTor))[/quote]

no nothing new,

[Apr 20 11:12:27] WARNING[6210]: app_dial.c:1310 dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Unknown) [Apr 20 11:12:27] == Everyone is busy/congested at this time (1:0/0/1) [Apr 20 11:12:27] -- Executing [008000556688@default:3] Hangup("SIP/8001-00000000", "") in new stack [Apr 20 11:12:27] == Spawn extension (default, 008000556688, 3) exited non-zero on 'SIP/8001-00000000' [Apr 20 11:12:27] -- Executing [h@default:1] DeadAGI("SIP/8001-00000000", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----20-----CHANUNAVAIL----------") in new stack [Apr 20 11:12:27] -- AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----20-----CHANUNAVAIL---------- completed, returning 0

[quote=“remuk”][quote=“elphssp”]i think i realized what’s the catch.
“sipgate” doesn’t have to be a variable.
it is a “static” peer that is used as a trunk.
so the dial string has to look like:
exten => _x.,2,Dial (sip/sipgate/${EXTEN:1},55,tTor))[/quote]

no nothing new,

[Apr 20 11:12:27] WARNING[6210]: app_dial.c:1310 dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Unknown) [Apr 20 11:12:27] == Everyone is busy/congested at this time (1:0/0/1) [Apr 20 11:12:27] -- Executing [008000556688@default:3] Hangup("SIP/8001-00000000", "") in new stack [Apr 20 11:12:27] == Spawn extension (default, 008000556688, 3) exited non-zero on 'SIP/8001-00000000' [Apr 20 11:12:27] -- Executing [h@default:1] DeadAGI("SIP/8001-00000000", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----20-----CHANUNAVAIL----------") in new stack [Apr 20 11:12:27] -- AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----20-----CHANUNAVAIL---------- completed, returning 0 [/quote]

Everything is working now,Unable to create channel of type ‘SIP’ (cause 20 - Unknown)
[Apr 20 11:12:27] == Everyone is busy/congested at this time (1:0/0/1) was due to a misconfiguration in Account Entry.

Thanks very much for your help guys. :stuck_out_tongue: :stuck_out_tongue: :stuck_out_tongue: :stuck_out_tongue: :stuck_out_tongue:

this logs show what was after call attempt, not at the time of a call.
oops i’m little bit delayed with this message

In the most recent logs you have continually missed out the important lines, which are the equivalent of the cannot find host line and the expanded text of the Dial application parameters.