[Freeswitch-users] originate command sofia behaviour

Michael Collins msc at freeswitch.org
Wed Sep 16 12:01:11 PDT 2009


On Wed, Sep 16, 2009 at 11:43 AM, Alberto Escudero <aep.lists at it46.se>wrote:

> The problem i am facing is the following:
>
> Extension 4600 is a Javascript IVR that starts by session.aswer()
>
> I want to originate a call to leg 1 and then connected to the IVR when the
> leg 1 has answered.
>
> If I run
>
> originate sofia/192.168.46.15/1001  4600
> call is transfer to extension 4600 *IVR* after 1001 answers the call
>
> If I run
> originate sofia/internal/1001 at 192.168.46.15 4600
> the IVR starts BEFORE user 1001 has answered?
>
> What is the best way to:
>
> Initiate a call to leg 1 and connect it to leg 2 (the Javascript IVR)
> after leg 1 has answered the call?
>

You can try ignoring early media to force the A-leg to answer before
anything else happens. Try this and let us know if it does what you want:
originate {ignore_early_media=true} sofia/internal/1001 at 192.168.46.15 4600

You can probably look at the SIP traces of the two options you've tried
(without ignoring early media) to confirm that you're getting media prior to
answer when doing "originate sofia/internal/1001 at 192.168.46.15 4600" -
probably in one case you get a 180 and in the other a 183. Check it out and
let us know. :)
-MC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090916/22e87ca8/attachment-0002.html 


More information about the FreeSWITCH-users mailing list