[SR-Users] Redirect with path

Daniel-Constantin Mierla miconda at gmail.com
Fri Jun 19 12:27:29 CEST 2015



On 19/06/15 11:52, Kelvin Chua wrote:
> on my registrar server:
> after calling lookup, and getting AOR with path, how do I send the
> path info back
> as a redirect?
>
Is there a specification on how to do that? IIRC, right now the contact
for redirect is build using only the address and q values -- this is
about the c code for generating 3xx response. It can be extended if
there is a spec for it.

However, even right you can use reg_fetch_contacts() in config to
retrieve the records from location and build the contact header as you need.

Cheers,
Daniel

-- 
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Book: SIP Routing With Kamailio - http://www.asipto.com




More information about the sr-users mailing list