[Serusers] Forwarding decisions

Bogdan-Andrei IANCU iancu at fokus.fraunhofer.de
Tue Jun 15 11:01:42 CEST 2004


Gala, Dipen wrote:

>
> hey folks can I make my forwarding or rewrite decisions based on the 
> attributes I have in the request.
> I want to make the forwarding decision based on the user agent or the 
> various SDP attributes that are there in the INVITE request. How can I 
> read and compare all the information I find in the SIP protocol
>
you can try to do it in a more generic way by using functions from 
textops module, like search(regexp), is_present_hf(hf_name), etc.. ; 
search[_append] function(s) work(s) with the whole SIP msg (including body)

bogdan

> Like based on
> 1) User-Agent: Asterisk PBX
> 2) or based on the media type like text , voice , video
> Please if any one can help me and provide me with examples …..
> thanks
> *Dipen K Gala*
> Fidelity Investments System Company - Telecom
> Phone: (617) 563-2729
> Email: Dipen.Gala at FMR.com
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Serusers mailing list
>serusers at lists.iptel.org
>http://lists.iptel.org/mailman/listinfo/serusers
>  
>




More information about the sr-users mailing list