[Freeswitch-users] extension-in-contact problem

François Delawarde fdelawarde at wirelessmundi.com
Tue Sep 7 06:03:01 PDT 2010


Hello again,

I found the corresponding code for gateway identification in
"sofia_handle_sip_i_invite" of sofia.c, it is supposed to fetch the
gateway using "gw=" if the url does not contain "gw+":

if (sip->sip_request->rq_url->url_params) {
	gw_name = sofia_glue_find_parameter(sip->sip_request->rq_url->url_params, "gw=");
}

if (strstr(destination_number, "gw+")) {
	gw_name = destination_number + 3;
}


The first part apparently does not work (for me at least), and I have
tried with different gateway names (in case it didn't accept
underscores) with no success.

Is this a real bug I should put in Jira or am I doing something wrong
(again...)?

Thanks,
François.




On Tue, 2010-09-07 at 14:49 +0200, François Delawarde wrote:
> Hi,
> 
> I noticed that when I set the "extension-in-contact" parameter to "true"
> in my gateway, the gateway is not identified when receiving an incoming
> call, and all calls are redirected to the profile's default context
> instead of the gateway's configured context.
> 
> Is this a normal/expected behavior?
> 
> 
> 
> In my sofia.conf.xml profile I have:
> <gateway name="sol_account">
>   <param name="extension" value="bli"/>
>   <param name="extension" value="test"/>
>   <param name="extension-in-contact" value="true"/>
>   ...
> </gateway>
> 
> 
> And incoming calls are received with the extension-in-contact being
> "true":
> 
> INVITE sip:test at 192.168.10.80:5060;transport=udp;gw=sol_account SIP/2.0
> 
> Instead of:
> 
> INVITE sip:gw+sol_account at 192.168.10.80:5060;transport=udp;gw=sol_account SIP/2.0
> 
> 
> Thanks,
> François.
> 
> 
> _______________________________________________
> 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




More information about the FreeSWITCH-users mailing list