[SR-Users] Handling Tel URIs

Daniel-Constantin Mierla miconda at gmail.com
Wed Oct 3 14:03:28 CEST 2012


Hello,

do you have a Route header also for kamailio proxy? If yes, try to do 
loose_route() and then t_relay().

If not, get the address from Route in $du and relay:
$du = $(hdr(Route){nameaddr.uri});
remove_hf("Route");
t_relay();
exit;

Cheers,
Daniel

On 10/3/12 1:46 PM, Kamal Palei wrote:
> Hi Daniel
> Thanks for your response.
> I have a message as below.
> PUBLISH tel:+915346586495469 SIP/2.0
> Via:
> To:
> From:
> Route: <sip:main_proxy_ip>
> ..
> ..
> This message comes from phone to Kamailio proxy.
> I just need Kamailio proxy just forward this message to main proxy 
> without modifying tel uri present in request uri.
> Can this be acheived by tel2sip() api.
> Thanks
> Kamal
>
> On Wed, Oct 3, 2012 at 4:37 PM, Daniel-Constantin Mierla 
> <miconda at gmail.com <mailto:miconda at gmail.com>> wrote:
>
>     Hello,
>
>
>     On 10/3/12 12:36 PM, Kamal Palei wrote:
>>     Changing the subject line
>>
>>     On Wed, Oct 3, 2012 at 3:54 PM, Kamal Palei
>>     <palei.kamal at gmail.com <mailto:palei.kamal at gmail.com>> wrote:
>>
>>         Hi All
>>         I am using Kamailio - 3.1.5 version.
>>
>>         When a message of tel URI comes to Kamailio, Kamailio is not
>>         forwarding the message to next proxy.
>>         If is returning "478 Unresolved response" .
>>
>>         Can somebody give me some pointer how do I handle this situation?
>>
>     kamailio cannot forward when there is tel uri -- it requires a
>     domain part (hostname/ip) to know where to send the requests.
>
>     See this function that should help you convert the tel uri to sip uri:
>     http://kamailio.org/docs/modules/stable/modules_k/siputils.html#id2494464
>
>     Cheers,
>     Daniel
>
>     -- 
>     Daniel-Constantin Mierla -http://www.asipto.com  <http://www.asipto.com/>
>     http://twitter.com/#!/miconda  <http://twitter.com/#%21/miconda>  -http://www.linkedin.com/in/miconda
>     Kamailio Advanced Training, Berlin, Nov 5-8, 2012 -http://asipto.com/u/kat
>     Kamailio Advanced Training, Miami, USA, Nov 12-14, 2012 -http://asipto.com/u/katu
>
>

-- 
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio Advanced Training, Berlin, Nov 5-8, 2012 - http://asipto.com/u/kat
Kamailio Advanced Training, Miami, USA, Nov 12-14, 2012 - http://asipto.com/u/katu

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20121003/d4ba8ffe/attachment-0001.htm>


More information about the sr-users mailing list