[Users] Parsing SIP responses

Bogdan-Andrei Iancu bogdan at voice-system.ro
Tue Jan 31 22:23:29 CET 2006


Ovidiu,

from the script's failure route you do not have access to the reply 
message. So, the only way to do it is to build a module that binds to tm 
and fetch the reply - take a look at uac_redirect to see how it's done.

regards,
bogdan

Ovidiu Sas wrote:

> Hi Bogdan,
>
> What I want to do is to get some headers from the 3xx response.  I 
> wonder if there's a way to retrieve headers from a response (I know 
> that it is posible from a request).
>
> -ovi
>
> Bogdan-Andrei Iancu wrote:
>
>> Hi Ovidiu,
>>
>> a redirect on server feature is implemented in the uac_redirect 
>> module - it gets all the contacts from the 3xx branches and push them 
>> as new branches - filtering is also possible.
>>
>> take a look, it might fit your needs.
>>
>> regards,
>> bogdan
>>
>> Ovidiu Sas wrote:
>>
>>> Hi,
>>>
>>> I configured openser to handle redirect responses and re-route calls 
>>> based on the Contact header from the 3xx response using the 
>>> uac_redirect module. In addition to that, I would like to transfer 
>>> some headers from the 3xx response into the redirected INVITE (see 
>>> diagram):
>>>
>>>   UAC          openser        UAS1            UAS2
>>>    |             |             |               |
>>>    |---INVITE--->|             |               |
>>>    |             |---INVITE--->|               |
>>>    |             |<--3XX-------|               |
>>>    |             |   with Diversion header     |
>>>    |             |---ACK------>|               |
>>>    |             |---------------INVITE------->|
>>>    |             |             | with Diversion header
>>>    |             |             | from 3xx response from UAS1
>>>
>>>
>>> Is there an API that will allow me to search for headers inside a 
>>> response and save them in to an AVP?
>>>
>>>
>>> Thx,
>>> -ovi
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at openser.org
>>> http://openser.org/cgi-bin/mailman/listinfo/users
>>>
>>
>





More information about the sr-users mailing list