Plivo origination url / dial problem

408 views
Skip to first unread message

Francois Wilhelmy

unread,
Apr 13, 2012, 12:37:34 PM4/13/12
to plivo...@googlegroups.com
Hello everyone, 

We are long time freeswitch users, but new to plivo, loving it so far for what we needed, however we have a slight problem when trying the <dial> command. 

Here is my xml:
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Speak>Connecting</Speak>
<Dial timeLimit="90">
<Number gateways="sofia/gateway/trunk/">
</Number>
</Dial>
</Response>

Here is what we think is causing the problem:
:_: is being appended to the bridge string and result in URL error
providing two numbers to dial will solve this issue but our bridge strings are gateway and according to freeswitch documentation :_: should be used for users
the later test will simply fail with DESTINATION_OUT_OF_ORDER
Getting following error: No origination URL specified!
Seems to come from the fact that bridge strings ends with :_: and bridge is expecting a second destination to dial.

Debug output : 
2012-04-13 12:04:09.940585 [DEBUG] switch_ivr.c:591 sofia/external/88888...@72.55.158.159 Command Execute bridge(<api_on_ring='uuid_setvar fd456be5-4518-461c-800b-2c68dc282524 plivo_dial_rang true',api_on_pre_answer='uuid_setvar fd456be5-4518-461c-800b-2c68dc282524 plivo_dial_rang true',api_on_answer_1='sched_api +90 4e0905b8-8582-11e1-9c1f-00096bb57bee uuid_transfer fd456be5-4518-461c-800b-2c68dc282524 -bleg hangup:ALLOTTED_TIMEOUT inline'>sofia/gateway/trunk/8888888888:_:)
EXECUTE sofia/external/8888...@72.55.158.159 bridge(<api_on_ring='uuid_setvar fd456be5-4518-461c-800b-2c68dc282524 plivo_dial_rang true',api_on_pre_answer='uuid_setvar fd456be5-4518-461c-800b-2c68dc282524 plivo_dial_rang true',api_on_answer_1='sched_api +90 4e0905b8-8582-11e1-9c1f-00096bb57bee uuid_transfer fd456be5-4518-461c-800b-2c68dc282524 -bleg hangup:ALLOTTED_TIMEOUT inline'>sofia/gateway/trunk/8888888888:_:)
2012-04-13 12:04:09.940585 [WARNING] switch_ivr_originate.c:1903 No origination URL specified!
2012-04-13 12:04:09.940585 [DEBUG] switch_ivr_originate.c:3364 Originate Resulted in Error Cause: 27 [DESTINATION_OUT_OF_ORDER]

Freeswitch : FreeSWITCH Version 1.1.beta1 (git-2ab1605 2012-03-29 18-37-15 -0500)
Plivo : Latest as of this message.


Thanks in advance for any help you can provide.


--
François "Mouton" Wilhelmy
FuturWeb
www.futurweb.net
http://www.facebook.com/icemouton

Mike

unread,
Apr 13, 2012, 12:42:53 PM4/13/12
to plivo...@googlegroups.com
Hi,

dont take care of this warning logs, it is generated cause after :_:
separator you dont have any dialstring
cause you are only calling one number and freeswitch is trying to make
a bridge with this empty string (maybe need a small patch to avoid
that and just warn about an empty dialstring passed) .

just check if
originate sofia/gateway/trunk/8888888888 &park()

is working from the freeswitch fs_cli .

Mike

--
--

Michael Ricordeau
Co-Founder Plivo

mi...@plivo.com
http://www.plivo.com
twitter @mricordeau
linkedin http://fr.linkedin.com/in/michaelricordeau

Francois Wilhelmy

unread,
Apr 13, 2012, 12:54:35 PM4/13/12
to plivo...@googlegroups.com
Thank you very much, 

It seems we were looking too deep into the issue, we are now looking for a different problem and it should work.

This is what happens when you're more used to look at the fs_errors and don't take the time to test the obvious.

Thank you!

--
François "Mouton" Wilhelmy
CGP Media
www.cgp-media.com
http://www.facebook.com/icemouton
Reply all
Reply to author
Forward
0 new messages