Page 1 of 1

Unable to make calls..

PostPosted: Thu Mar 18, 2010 6:02 am
by najim_mdn
Hello
i have set up an IAX2 trunk between my vicidial and elastix server..
There are extensions starting from 1000000000 to 1000000015 (10 digits) in the elastix server and one agent phone with extension 201 in the vicidial server.
I created a campaign,lists and loaded the leads with above extensions. i can see the extensions in my dial hopper

MODIFY


Live Current Hopper List 2010-03-18 16:12:07

---------- TOTALS
Total leads in hopper right now: 7

---------- LEADS IN HOPPER
+------+--------+-----------+------------+------------+-------+--------+-------+--------+-------+
|ORDER |PRIORITY| LEAD ID | LIST ID | PHONE NUM | STATE | STATUS | COUNT | GMT | ALT |
+------+--------+-----------+------------+------------+-------+--------+-------+--------+-------+
| 0 | 0 | 60218 | 222 | 1000000003 | FL | NEW | 0 | -8.00 | NONE |
| 1 | 0 | 60219 | 222 | 1000000004 | FL | NEW | 0 | -8.00 | NONE |
| 2 | 0 | 60220 | 222 | 1000000005 | FL | NEW | 0 | -8.00 | NONE |
| 3 | 0 | 60221 | 222 | 1000000006 | NT | NEW | 0 | -8.00 | NONE |
| 4 | 0 | 60222 | 222 | 1000000007 | NS | NEW | 0 | -8.00 | NONE |
| 5 | 0 | 60223 | 222 | 1000000008 | FL | NEW | 0 | -8.00 | NONE |
| 6 | 0 | 60224 | 222 | 1000000009 | FL | NEW | 0 | -8.00 | NONE |
+------+--------+-----------+------------+------------+-------+--------+-------+--------+-------+


but when i login as an agent, and do the DIAL NEXT NUMBER
the agent screen shows LIVE CALL but the phone doesnt ring.

My CLI messages show

[Mar 18 16:13:10] > Channel SIP/201-0821df20 was answered.
[Mar 18 16:13:10] -- Executing [8600051@default:1] MeetMe("SIP/201-0821df20", "8600051|F") in new stack
[Mar 18 16:13:10] == Parsing '/etc/asterisk/meetme.conf': [Mar 18 16:13:10] Found
[Mar 18 16:13:10] == Parsing '/etc/asterisk/meetme-vicidial.conf': [Mar 18 16:13:10] Found
[Mar 18 16:13:10] -- Created MeetMe conference 1023 for conference '8600051'
[Mar 18 16:13:10] -- <SIP/201-0821df20> Playing 'conf-onlyperson' (language 'en')
[Mar 18 16:13:12] == Manager 'sendcron' logged off from 127.0.0.1
[Mar 18 16:13:19] == Parsing '/etc/asterisk/manager.conf': [Mar 18 16:13:19] Found
[Mar 18 16:13:19] == Manager 'sendcron' logged on from 127.0.0.1
[Mar 18 16:13:19] -- Executing [8600051@default:1] MeetMe("Local/8600051@default-6e14,2", "8600051|F") in new stack
[Mar 18 16:13:19] > Channel Local/8600051@default-6e14,1 was answered.
[Mar 18 16:13:19] -- Executing [11000000003@default:1] AGI("Local/8600051@default-6e14,1", "agi://127.0.0.1:4577/call_log") in new stack
[Mar 18 16:13:19] -- AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
[Mar 18 16:13:19] -- Executing [11000000003@default:2] Dial("Local/8600051@default-6e14,1", "IAX2/asterisk/1000000003||tTor") in new stack
[Mar 18 16:13:19] -- Called asterisk/1000000003
[Mar 18 16:13:19] -- Hungup 'IAX2/asterisk-16408'
[Mar 18 16:13:19] == Everyone is busy/congested at this time (1:0/0/1)
[Mar 18 16:13:19] -- Executing [11000000003@default:3] Hangup("Local/8600051@default-6e14,1", "") in new stack
[Mar 18 16:13:19] == Spawn extension (default, 11000000003, 3) exited non-zero on 'Local/8600051@default-6e14,1'
[Mar 18 16:13:19] -- Executing [h@default:1] DeadAGI("Local/8600051@default-6e14,1", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----CHANUNAVAIL----------") in new stack
[Mar 18 16:13:19] -- AGI Script agi://127.0.0.1:4577/call_log--HVcauses ... ---------- completed, returning 0
[Mar 18 16:13:19] == Spawn extension (default, 8600051, 1) exited non-zero on 'Local/8600051@default-6e14,2'
[Mar 18 16:13:19] -- Executing [h@default:1] DeadAGI("Local/8600051@default-6e14,2", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0---------------") in new stack
[Mar 18 16:13:19] -- AGI Script agi://127.0.0.1:4577/call_log--HVcauses ... ---------- completed, returning 0



The call doesnt hangup and it continues to show LIVE CALL untill i click HANGUP CUSTOMER

I think my trunk is working fine cause im able to call from 10000000001(elastix) to 201(vicidial),
but when i try to dial 10000000001 from 201 it shows call declined.. (i dont kno if that will be possible.. to dial from a user phone to the outbound extension)

hope my scenario is clear :? .. please help me with where i went wrong..
Thank You

PostPosted: Thu Mar 18, 2010 6:53 am
by mflorell
vicidial.php version and build?

How did you install ViciDial?

PostPosted: Thu Mar 18, 2010 7:05 am
by najim_mdn
VERSION: 2.4-242
BUILD: 100302-2133

i followed the the ubuntu_install guide.
a little more information.. when the user agent make calls to the elastix server.. nothing shows up in the cli of the elastix server.

PostPosted: Thu Mar 18, 2010 7:14 am
by najim_mdn
My carrier details is as follows..
carrier ID: trunk

Account entry:
[asterisk]
type=friend
host=192.168.1.200
trunk=yes
secret=password
context=from-internal
qualify=yes

Protocol:IAX2

Dialplan entry:
exten => _1.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _1.,2,Dial(IAX2/asterisk/${EXTEN:1},,tTor)
exten => _1.,3,Hangup

server ip: 192.168.1.100


Is there any problem with my dial plan..??

PostPosted: Thu Mar 18, 2010 8:37 am
by mflorell
Are you registering the trunk?

PostPosted: Thu Mar 18, 2010 9:25 am
by najim_mdn
no i am not.. i thought you need that only if the host=dynamic.
i have mentioned the host ip in my trunk details.

PostPosted: Thu Mar 18, 2010 6:51 pm
by williamconley
also post your iax debug. it may simply be failing during codec negotiation.

Got it working..

PostPosted: Tue Mar 23, 2010 8:10 am
by najim_mdn
i finally got it working.. and my calls are going through..
i am not sure if thet was the issue.. but i when i created a new trunk with host=dynamic in my trunk settings and registered the trunk it worked.
Thanx guys..

PostPosted: Tue Mar 23, 2010 8:13 am
by najim_mdn
@ matt florell

Are you registering the trunk?


Is it a requirement that we should register the trunk in vicidial?? Registering worked for me..

PostPosted: Tue Mar 23, 2010 8:29 am
by mflorell
registration is not a requirement, but if you are running into problems it can help.