[Serusers] Extract "from" header

Ranga rrao_v at yahoo.com
Tue Aug 24 21:24:41 CEST 2004


Inline.
--- Vanita Jain <vanita at vigyana.com> wrote:

> Hi,
> 
> I need similar thing. Can you tell us how you
> generated extra header
> which has values of previous header.
> For simply adding a header, I use append_to_reply().
> 
I was not doing much in the configuration file. I have
my own module that creates and appends new header
based on the request elements received. ser script is
as simples as this.
if ( method == "INVITE" ) {
   create_custom_header(); # exported function from
our own module.
}
   
> I also need to generate NOTIFY from SER and send.
> How is it possible.
I believe, ser can not generate a new request. You may
have to run another user agent that generates NOTIFY
requests. You will have to forward SUBCRIBE/any other
request that triggers NOTIFY to this UA to get NOTIFY
back from that UA. Please correct me if I am wrong
here.

> 
> -Vanita
> 
> -----Original Message-----
> From: serusers-bounces at lists.iptel.org
> [mailto:serusers-bounces at lists.iptel.org] On
> Behalf Of Ranga
> Sent: Saturday, August 21, 2004 12:29 AM
> To: Bob Bob; serusers at lists.iptel.org
> Subject: Re: [Serusers] Extract "from" header
> 
> 
> Bob,
> 
>    Yeah. We had a similar requirement. We have
> devoloped a new module which implements our business
> logic in generating extra headers.
> 
>   I remember reading in ser lists about variables in
> script. This was in pipeline, I believe. I am not
> sure. If variables are supported in the script, it
> may
> be possible then.
> 
> regards
> Ranga
> 
> --- Bob Bob <cflerackers at yahoo.com> wrote:
> 
> > Hi,
> >  
> > I'd like to extract the From URI from a request
> and
> > use it to add a Call-Info header:
> > From: <sip:test at test.com>;tag=fd29df3df47
> > ->
> > Call-Info:
> >
>
<;purpose=icon">http://myserver.com/get.php?id=sip:test@test.com>;purpos
> e=icon
> >  
> > Can it be done with ser? There are a lot of
> > functions but none of them seem to be able to
> > extract headers and use the information in another
> > header.
> >  
> > Best regards,
> > Chris
> > 
> > 		
> > ---------------------------------
> > Do you Yahoo!?
> > New and Improved Yahoo! Mail - Send 10MB
> messages!>
> _______________________________________________
> > Serusers mailing list
> > serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
> > 
> 
> 
> 
> 		
> _______________________________
> Do you Yahoo!?
> Win 1 of 4,000 free domain names from Yahoo! Enter
> now.
> http://promotions.yahoo.com/goldrush
> 
> _______________________________________________
> Serusers mailing list
> serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
> 
> 



		
__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail




More information about the sr-users mailing list