[Freeswitch-users] sip_invite_params for all outgoing calls

KSrigo ksrigo at gmail.com
Mon Jan 23 15:22:46 MSK 2017


put this in your "sip_profiles/external/outgoing.xml”:

<include>
    <gateway name="outgoing">
      <variables>
        <variable name="sip_invite_params" value="user=phone"/>
      </variables>
      ...
    </gateway>
 </include>

Srigo


> On Jan 23, 2017, at 12:29 PM, René Weiss <rw at panorgan.ch> wrote:
> 
> Does a ESL command like
> "originate sofia/gateway/outgoing/12135551212 &park()" even run through 
> the dialplan? My impression was that I would have to use the "loopback" 
> endpoint for this, which doesn't work with some of our scripts.
> 
> Is there really no way to simple set or export "sip_invite_params"
> in a file like "vars.xml", "sip_profiles/external.xml" or 
> "sip_profiles/external/outgoing.xml"?
> 
> Am 23.01.17 um 11:39 schrieb KSrigo:
>> In this case, put this at the top in your dialplan (it ll match everything):
>> 
>> <extension name="Default_parameters" continue="true">
>>  <condition field="destination_number" expression="^.*$" break="never">
>>    <action application=“export" data="sip_invite_params=user=phone”
>> inline=“true"/>
>>  </condition>
>> </extension>
>> 
>> Srigo
>> 
>>> On Jan 23, 2017, at 11:03 AM, René Weiss <rw at panorgan.ch <mailto:rw at panorgan.ch>
>>> <mailto:rw at panorgan.ch <mailto:rw at panorgan.ch>>> wrote:
>>> 
>>> Hi Srigo
>>> 
>>> That is what I am doing at the moment.
>>> 
>>> What I would like to know is if there is a way to globaly set this
>>> variable in one (XML) file so that I don't have to remeber to always add
>>> it and also can change at only one place if I ever need to.
>>> 
>>> 
>>> Am 23.01.17 um 10:42 schrieb KSrigo:
>>>> hi,
>>>> 
>>>> In your dialplan use:
>>>> 
>>>> <action application="bridge"
>>>> data="{sip_invite_params=user=phone}sofia/gateway/outgoing/12135551212"/>
>>>> 
>>>> In your ESL script:
>>>> 
>>>> originate
>>>> {sip_invite_params=user=phone}sofia/gateway/outgoing/12135551212 &park()
>>>> 
>>>> PS: sip_invite_params only apply to the RURI, If you wish to modify the
>>>> To param son the invite you must use sip_invite_to_params the same way.
>>>> 
>>>> Srigo
>>>> 
>>>>> On Jan 23, 2017, at 8:20 AM, René Weiss <rw at panorgan.ch <mailto:rw at panorgan.ch>
>>>>> <mailto:rw at panorgan.ch <mailto:rw at panorgan.ch>>
>>>>> <mailto:rw at panorgan.ch <mailto:rw at panorgan.ch>>> wrote:
>>>>> 
>>>>> Hi,
>>>>> 
>>>>> Is it possible to set "sip_invite_params='user=phone'" for all outgoing
>>>>> calls / all outgoing calls using a specific gateway?
>>>>> 
>>>>> I'm searching a solution which work with the dialplan and also with
>>>>> calls over mod_event_socket and "originate".
>>>>> 
>>>>> I tried to set the variable in "conf/sip_profiles/external.xml" and
>>>>> "conf/sip_profiles/external/outgoing.xml" but I don't know if this was
>>>>> the wrong place or if I was just using the wrong syntax.
>>>>> 
>>>>> Thanks,
>>>>> René
>>>>> 
>>>>> _________________________________________________________________________
>>>>> Professional FreeSWITCH Consulting Services:
>>>>> consulting at freeswitch.org <mailto:consulting at freeswitch.org>
>>>>> <mailto:consulting at freeswitch.org <mailto:consulting at freeswitch.org>> <mailto:consulting at freeswitch.org <mailto:consulting at freeswitch.org>>
>>>>> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com/> <http://www.freeswitchsolutions.com/ <http://www.freeswitchsolutions.com/>>
>>>>> 
>>>>> Official FreeSWITCH Sites
>>>>> http://www.freeswitch.org <http://www.freeswitch.org/> <http://www.freeswitch.org/ <http://www.freeswitch.org/>>
>>>>> http://confluence.freeswitch.org <http://confluence.freeswitch.org/> <http://confluence.freeswitch.org/ <http://confluence.freeswitch.org/>>
>>>>> http://www.cluecon.com <http://www.cluecon.com/> <http://www.cluecon.com/ <http://www.cluecon.com/>>
>>>>> 
>>>>> FreeSWITCH-users mailing list
>>>>> FreeSWITCH-users at lists.freeswitch.org <mailto:FreeSWITCH-users at lists.freeswitch.org>
>>>>> <mailto:FreeSWITCH-users at lists.freeswitch.org <mailto:FreeSWITCH-users at lists.freeswitch.org>>
>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users>
>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users>
>>>>> <http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users>>
>>>>> http://www.freeswitch.org <http://www.freeswitch.org/> <http://www.freeswitch.org/ <http://www.freeswitch.org/>>
>>>> 
>>>> 
>>>> 
>>>> _________________________________________________________________________
>>>> Professional FreeSWITCH Consulting Services:
>>>> consulting at freeswitch.org <mailto:consulting at freeswitch.org>
>>>> http://www.freeswitchsolutions.com
>>>> 
>>>> Official FreeSWITCH Sites
>>>> http://www.freeswitch.org
>>>> http://confluence.freeswitch.org
>>>> http://www.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
>>>> http://www.freeswitch.org
>>>> 
>>> 
>>> _________________________________________________________________________
>>> Professional FreeSWITCH Consulting Services:
>>> consulting at freeswitch.org <mailto:consulting at freeswitch.org> <mailto:consulting at freeswitch.org <mailto:consulting at freeswitch.org>>
>>> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com/> <http://www.freeswitchsolutions.com/ <http://www.freeswitchsolutions.com/>>
>>> 
>>> Official FreeSWITCH Sites
>>> http://www.freeswitch.org <http://www.freeswitch.org/> <http://www.freeswitch.org/ <http://www.freeswitch.org/>>
>>> http://confluence.freeswitch.org <http://confluence.freeswitch.org/> <http://confluence.freeswitch.org/ <http://confluence.freeswitch.org/>>
>>> http://www.cluecon.com <http://www.cluecon.com/> <http://www.cluecon.com/ <http://www.cluecon.com/>>
>>> 
>>> FreeSWITCH-users mailing list
>>> FreeSWITCH-users at lists.freeswitch.org <mailto:FreeSWITCH-users at lists.freeswitch.org>
>>> <mailto:FreeSWITCH-users at lists.freeswitch.org <mailto:FreeSWITCH-users at lists.freeswitch.org>>
>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users>
>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users>
>>> <http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users>>
>>> http://www.freeswitch.org <http://www.freeswitch.org/> <http://www.freeswitch.org/ <http://www.freeswitch.org/>>
>> 
>> 
>> 
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>> 
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://confluence.freeswitch.org
>> http://www.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
>> http://www.freeswitch.org
>> 
> 
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services: 
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
> 
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.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
> http://www.freeswitch.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20170123/5dc744ad/attachment-0001.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list