[Freeswitch-users] sip_gateway dialplan variable

Hynek Cihlar hynek.cihlar at gmail.com
Sun Feb 5 21:41:26 MSK 2012


Yes! Thanks for the tip!

Hynek



On Sun, Feb 5, 2012 at 11:12 AM, Avi Marcus <avi at avimarcus.net> wrote:

> At worst, you can create a variable in the gateway settings so it
> populates a channel variable. I couldn't find the syntax on the wiki,
> though.. should make that easy to find. We need a real gateway page..
>
> -Avi
>
>
> On Wed, Feb 1, 2012 at 9:29 AM, Hynek Cihlar <hynek.cihlar at gmail.com>wrote:
>
>> Hello Mike and thanks for the reply.
>>
>> Unfortunately sip_req_host only gives me the sip host. My setup is
>> probably not quite usual, I have a multihome system with many gateways,
>> each gateway name assigned to a unique id. The unique id is simply a random
>> string identifying the gateway in the whole system. The unique id is also
>> persisted in the DB, based on the id additional call processing takes
>> place. My initial idea was to get the gateway name in the dialplan and pass
>> it to an ESL app. But it really looks like it is not possible to retrieve
>> the gateway name at all, sadly.
>>
>> Hynek
>>
>>
>>
>> On Tue, Jan 24, 2012 at 8:42 AM, Michael Lutz <mytemike72 at gmail.com>wrote:
>>
>>> Hi Hynek,
>>>
>>> {sip_req_host} should give your own gateway (local), and {network_addr}
>>> should give the remote gateway.
>>>
>>> Otherwise writing a cdr and look will help you with this.
>>>
>>> Regards,
>>> Mike
>>>
>>> Op 24 jan. 2012 om 08:27 heeft Hynek Cihlar <hynek.cihlar at gmail.com>
>>> het volgende geschreven:
>>>
>>> In one of the examples on wiki I found ${sip_gateway}, but that doesn't
>>> seem to work. Also, there is ${sip_gateway_name}, but that works on
>>> outbound calls only.
>>>
>>> Hynek
>>>
>>>
>>>
>>> On Mon, Jan 23, 2012 at 7:03 PM, Hynek Cihlar <hynek.cihlar at gmail.com>wrote:
>>>
>>>> Dear, is there a dialplan variable that would hold the gateway name an
>>>> incoming call came through? Searching through the source code and wiki
>>>> didn't yield any positive result.
>>>>
>>>> Thanks!
>>>>
>>>> Hynek
>>>>
>>>>
>>> _________________________________________________________________________
>>> Professional FreeSWITCH Consulting Services:
>>> consulting at freeswitch.org
>>> http://www.freeswitchsolutions.com
>>>
>>> 
>>> 
>>>
>>> Official FreeSWITCH Sites
>>> http://www.freeswitch.org
>>> http://wiki.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://wiki.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://wiki.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://wiki.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/20120205/e72ccdf4/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list