Page 1 of 1

defualt tutorial dialplan does not work

PostPosted: Mon Sep 07, 2009 7:15 pm
by tehseen
Greetings to All,
I followed the tutorial step by step but can not make call out via using this dialplane

Code: Select all
exten => _1NXXNXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _1NXXNXXXXXX,2,Dial(${TRUNK}/${EXTEN:1},,To)
exten => _1NXXNXXXXXX,3,Hangup


so Ive cleared out all and used this

Code: Select all
exten => _1NXXNXXXXXX,1,Dial(${TRUNK}/${EXTEN},,o)


Then I was able to make calls , does any one have any idea why that doesnt work for me above dial plane?


Regards
Tehseen

PostPosted: Mon Sep 07, 2009 8:23 pm
by mflorell
admin.php version and build?

Asterisk CLI output?

PostPosted: Tue Sep 08, 2009 10:12 am
by tehseen
VERSION: 2.0.5-173
BUILD: 90320-0424


Code: Select all
Global String :TRUNKMT = MYTEL

exten => _1NXXNXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _1NXXNXXXXXX,2,Dial(${TRUNKMT}/${EXTEN:1},,To)
exten => _1NXXNXXXXXX,3,Hangup




Code: Select all
following is CLI output

-- Executing AGI("SIP/cc100-b7822728", "agi://127.0.0.1:4577/call_log") in new stack
    -- AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
    -- Executing Dial("SIP/cc100-b7822728", "MYTEL/6502251000||To") in new stack
Sep  8 16:00:35 WARNING[8686]: channel.c:2621 ast_request: No channel type registered for 'MYTEL'
Sep  8 16:00:35 NOTICE[8686]: app_dial.c:1076 dial_exec_full: Unable to create channel of type 'MYTEL' (cause 66 - Channel not implemented)
  == Everyone is busy/congested at this time (1:0/0/1)
    -- Executing Hangup("SIP/cc100-b7822728", "") in new stack
  == Spawn extension (default, 16502251000, 3) exited non-zero on 'SIP/cc100-b7822728'
    -- Executing DeadAGI("SIP/cc100-b7822728", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----66-----CHANUNAVAIL----------") in new stack
    -- AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----66-----CHANUNAVAIL---------- completed, returning 0



Regards
Tehseen[/code]

PostPosted: Tue Sep 08, 2009 5:31 pm
by mflorell
What exactly is a trunk type of MYTEL?

is this SIP or a T1 crossover?

PostPosted: Wed Sep 09, 2009 6:36 am
by tehseen
It is SIP , and Ive corrected the mistake thanks for your kind response.


Corrections:

Code: Select all
Global String :TRUNKMT = SIP/MYTEL

exten => _1NXXNXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _1NXXNXXXXXX,2,Dial(${TRUNKMT}/${EXTEN:1},,To)
exten => _1NXXNXXXXXX,3,Hangup



and thanks to webgrru too.


Regards
Tehseen[/code]