Page 1 of 1

IAX Trunk setting

PostPosted: Sun Aug 01, 2010 3:45 pm
by manfire
This is debug asterisk call


[Aug 1 22:35:52] NOTICE[2216]: chan_local.c:511 local_call: No such extension/context 90033954854508@default while calling Local channel
[Aug 1 22:35:52] NOTICE[2216]: channel.c:3312 __ast_request_and_dial: Unable to call channel Local/90033954854508@default
[Aug 1 22:35:52] == Parsing '/etc/asterisk/manager.conf': [Aug 1 22:35:52] Found
[Aug 1 22:35:52] == Manager 'sendcron' logged on from 127.0.0.1
[Aug 1 22:35:52] NOTICE[2219]: chan_local.c:511 local_call: No such extension/context 90033952858280@default while calling Local channel
[Aug 1 22:35:52] NOTICE[2219]: channel.c:3312 __ast_request_and_dial: Unable to call channel Local/90033952858280@default
[Aug 1 22:35:52] == Parsing '/etc/asterisk/manager.conf': [Aug 1 22:35:52] Found
[Aug 1 22:35:52] == Manager 'sendcron' logged on from 127.0.0.1
[Aug 1 22:35:52] NOTICE[2220]: chan_local.c:511 local_call: No such extension/context 90033952858277@default while calling Local channel
[Aug 1 22:35:52] NOTICE[2220]: channel.c:3312 __ast_request_and_dial: Unable to call channel Local/90033952858277@default



My trunk is IAX2

[test]
disallow=all
allow=g729
type=peer
username=***********
secret=********
host=*********


exten => _9NXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _9NXXXXXX,2,Dial(${TESTIAXTRUNK}/${EXTEN:2},,tTor)
exten => _9NXXXXXX,3,Hangup


I need for help to do this problem

PostPosted: Mon Aug 02, 2010 10:32 am
by okli
You are calling 003395285xxxx, with added prefix 9 by vicidial.
So you'd need to have a suitable entry in your dialplan, _9NXXXXXX is not such, _900339XXXXXXXX seems better, adjust accordingly:
http://www.voip-info.org/wiki/view/Aste ... n+Patterns

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

PostPosted: Mon Aug 02, 2010 1:29 pm
by williamconley
and you should identify what parts of the extension will be expected/required by your voip provider.

sample breakdown: (i don't know where you are dailing so i'm just guessing)

9 = dial prefix from campaign, used to bring the call to this "Carrier" in admin->carriers, then discarded (by exten:1, the :1 means discard the first digit) because the voip provider does not want it

00 = indicates international dialing, should be passed to the provider if they expect it (so leave exten:1 ... if the provider does not want it, change to exten:3)

339 = country code (required by provider)

XXXXXXXX = actual phone number (also required)

this could also be exten:

900XXXXXXXXXXX to allow dialing other 3 digit country codes without adding new extens.