Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with FS originate #48

Closed
efinkelman opened this issue Sep 16, 2011 · 10 comments
Closed

Issue with FS originate #48

efinkelman opened this issue Sep 16, 2011 · 10 comments
Assignees
Labels

Comments

@efinkelman
Copy link

The plivo-rest.log file is showing the following command is being sent to FS.

originate {plivo_request_uuid=c9e25272-e085-11e0-b505-12313b0c4557,plivo_answer_url=http://testurl.com,plivo_ring_url=,plivo_hangup_url=http://testurl.com,origination_caller_id_number=5555555555,bridge_early_media=true,api_on_answer_1='sched_api +798860 c9e256c8-e085-11e0-b505-12313b0c4557 'hupall ALLOTTED_TIMEOUT plivo_request_uuid c9e25272-e085-11e0-b505-12313b0c4557'',plivo_sched_hangup_id=c9e256c8-e085-11e0-b505-12313b0c4557,plivo_app=true,originate_timeout=60,ignore_early_media=true}sofia/gateway/sip1/+15555555555 'socket:127.0.0.1:8084 async full' inline

The issue is that FS is coming back with

2011-09-16 13:04:24.446990 [ERR] switch_ivr_originate.c:1887 Parse Error!
2011-09-16 13:04:24.446990 [DEBUG] switch_ivr_originate.c:3346 Originate Resulted in Error Cause: 27 [DESTINATION_OUT_OF_ORDER]

However when I remove ALLOTTED_TIMEOUT plivo_request_uuid c9e25272-e085-11e0-b505-12313b0c4557 from the originate when I do it manually in the cli, it works fine.

Please advise.

@mike-plivo
Copy link
Member

ok, I will test/fix it.
Maybe something wrong when using simple quotes like that .

This problem occurs when you are using TimeLimit in Call rest api ?

Can you give us the freeswitch git revision you are using ?

@ghost ghost assigned mike-plivo Sep 17, 2011
@bevenky
Copy link
Member

bevenky commented Sep 17, 2011

I tested this with eli. This is there on latest revision of fs.

@mike-plivo
Copy link
Member

This bug happens with last FS revision ?

@mike-plivo
Copy link
Member

I found the commit in FS that changed simple quote parsing. I will fix it asap .

@efinkelman
Copy link
Author

Getting a new error now:

-USAGE: <call url> <exten>|&<application_name>(<app_args>) [<dialplan>] [<context>] [<cid_name>] [<cid_num>] [<timeout_sec>]

Here's the Originate that's being sent to FS:

originate {plivo_request_uuid=8275ddbe-e2ec-11e0-8647-12313b0c4557,plivo_answer_url=http://url.com,plivo_ring_url=,plivo_hangup_url=http://url.com,origination_caller_id_number=5551112222,bridge_early_media=true,api_on_answer_1=sched_api +798320 8275e1f6-e2ec-11e0-8647-12313b0c4557 hupall ALLOTTED_TIMEOUT plivo_request_uuid 8275ddbe-e2ec-11e0-8647-12313b0c4557,plivo_sched_hangup_id=8275e1f6-e2ec-11e0-8647-12313b0c4557,plivo_app=true,originate_timeout=60,ignore_early_media=true}sofia/gateway/sip1/+5552223333 'socket:127.0.0.1:8084 async full' inline   

@mike-plivo
Copy link
Member

Can you retry with last commit ?

commit 7f604f2

@bevenky bevenky reopened this Sep 23, 2011
@bevenky
Copy link
Member

bevenky commented Sep 23, 2011

This has again resurfaced..

@mike-plivo
Copy link
Member

tested with last FS git revision and last plivo revision => working

@mike-plivo
Copy link
Member

done

@tcreek
Copy link

tcreek commented Apr 15, 2014

It seems to have resurfaced again with me

I recently installed Plivo using this method:

wget --no-check-certificate https://github.com/plivo/plivoframework/raw/master/freeswitch/install.sh

sh install.sh

I see the script is getting FreeSwitch with the command "git clone $FS_GIT_REPO --depth=1"
and from I understand, that is getting the dev version while it is recommended to use the command:

git clone -b v1.2.stable git://git.freeswitch.org/freeswitch.git for the stable version.

I will give it a try and let you know

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants