[Freeswitch-users] Incorrect example for 'originate' with socket and async full

. joes.mailing.lists at gmail.com
Mon Oct 29 11:36:33 UTC 2018


Thanks for the responses.  Is it possible to use this syntax then to call
the socket application like in my initial example?  It is not clear to me
how that works with the app:arg pair syntax, given that they socket app
takes multiple args, and in the socket case the colon is also used in the
IP:port parameter value.  Best, Joe


On Wed, Oct 10, 2018 at 5:07 AM Brian West <brian at freeswitch.com> wrote:

> Because the &app method has been deprecated for a while now and the way
> you should accomplish this is via inline dialplan
>
>
> https://freeswitch.org/confluence/display/FREESWITCH/mod_dptools%3A+Inline+Dialplan
>
> Its actualy more powerful.
>
> On Mon, Oct 8, 2018 at 11:05 AM Michael Avers <michael at mailworks.org>
> wrote:
>
>> Hi Brian can you please clarify what you mean by online dialplan? Why
>> shouldn't &app be used anymore?
>>
>> Thank you
>> Mike
>>
>>
>> On Mon, Oct 8, 2018, at 3:13 AM, Brian West wrote:
>>
>> The &app notation shouldn’t be used anymore the inline dialplan is the
>> appropriate way to do this moving forward.
>>
>> /b
>>
>> On Fri, Oct 5, 2018 at 6:41 PM Mario <mario_fs at mgtech.com> wrote:
>>
>> Fixed.
>> Mario G
>>
>>
>> On Oct 4, 2018, at 5:30 AM, . <joes.mailing.lists at gmail.com> wrote:
>>
>> Hi,
>>
>> I wanted to report an error/typo in the confluence wiki related to
>> 'originate', and its use together with the socket application.
>>
>> Apologies, I don't have access to the wiki, but thought this was worth
>> passing on, so here it is:
>>
>>    -
>>    https://freeswitch.org/confluence/display/FREESWITCH/mod_commands#mod_commands-originate
>>
>> The wiki example for ring_ready also includes the socket application and
>> is written as:
>>
>>    -
>>
>>    originate {return_ring_ready=true}sofia/gateway/someprovider/919246461929 &socket(127.0.0.1:8082 async full)
>>
>>
>> however this hangs forever if used as written. Eventually, after several
>> hours of hair tearing and googling, I stumbled on this thread:
>>
>>    -
>>    https://freeswitch.org/jira/si/jira.issueviews:issue-html/FS-3591/FS-3591.html
>>
>> Indeed this is the problem.  The correct syntax for the socket component
>> is:
>>
>>    -
>>
>>    &socket('127.0.0.1:8082 async full')
>>
>>    - Specifically single quotes around the command so that it is treated
>>       as a single string.
>>
>> After making this change there is no more hanging on the outbound calls
>> and all events come through in a timely fashion.
>>
>> Cheers,
>> Joe
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Services
>> sales at freeswitch.com
>> https://freeswitch.com
>>
>> Official FreeSWITCH Sites
>> https://freeswitch.com/oss
>> https://freeswitch.org/confluence
>> https://cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> https://freeswitch.com
>>
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Services
>> sales at freeswitch.com
>> https://freeswitch.com
>>
>> Official FreeSWITCH Sites
>> https://freeswitch.com/oss
>> https://freeswitch.org/confluence
>> https://cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> https://freeswitch.com
>>
>> --
>>
>> Brian West | Co-founder and Developer
>>
>> Need Commercial support? email sales at freeswitch.com
>>
>> FreeSWITCH Solutions | 17345 Civic Drive #2531 Brookfield, WI 53045
>> <https://maps.google.com/?q=17345+Civic+Drive+%232531+Brookfield,+WI+53045&entry=gmail&source=g>
>>
>> Email: brian at freeswitch.com
>>
>> Mobile: 918-424-9378
>>
>> Website: https://www.FreeSWITCH.com <https://www.freeswitch.com/>
>>
>> [image: https://www.facebook.com/signalwireinc?src=email]
>> <https://www.facebook.com/freeswitch> [image:
>> https://twitter.com/freeswitch] <https://twitter.com/freeswitch>
>>
>> *_________________________________________________________________________*
>> Professional FreeSWITCH Services
>> sales at freeswitch.com
>> https://freeswitch.com
>>
>> Official FreeSWITCH Sites
>> https://freeswitch.com/oss
>> https://freeswitch.org/confluence
>> https://cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> https://freeswitch.com
>>
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Services
>> sales at freeswitch.com
>> https://freeswitch.com
>>
>> Official FreeSWITCH Sites
>> https://freeswitch.com/oss
>> https://freeswitch.org/confluence
>> https://cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> https://freeswitch.com
>
>
>
> --
>
> Brian West | Co-founder and Developer
>
> Need Commercial support? email sales at freeswitch.com
>
> FreeSWITCH Solutions | 17345 Civic Drive #2531 Brookfield, WI 53045
> <https://maps.google.com/?q=17345+Civic+Drive+%232531+Brookfield,+WI+53045&entry=gmail&source=g>
>
> Email: brian at freeswitch.com
>
> Mobile: 918-424-9378
>
> Website: https://www.FreeSWITCH.com <https://www.freeswitch.com/>
>
> [image: https://www.facebook.com/signalwireinc?src=email]
> <https://www.facebook.com/freeswitch> [image:
> https://twitter.com/freeswitch] <https://twitter.com/freeswitch>
> _________________________________________________________________________
> Professional FreeSWITCH Services
> sales at freeswitch.com
> https://freeswitch.com
>
> Official FreeSWITCH Sites
> https://freeswitch.com/oss
> https://freeswitch.org/confluence
> https://cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> https://freeswitch.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20181029/e90516a3/attachment-0001.html>


More information about the FreeSWITCH-users mailing list