Hi,
I'd like to extract the From URI from a request and use it to add a Call-Info header: From: sip:test@test.com;tag=fd29df3df47 -> Call-Info: <;purpose=icon">http://myserver.com/get.php?id=sip:test@test.com%3E;purpose=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!
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@yahoo.com wrote:
<;purpose=icon">http://myserver.com/get.php?id=sip:test@test.com%3E;purpose=icon
_______________________________________________
_______________________________ Do you Yahoo!? Win 1 of 4,000 free domain names from Yahoo! Enter now. http://promotions.yahoo.com/goldrush
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 also need to generate NOTIFY from SER and send. How is it possible.
-Vanita
-----Original Message----- From: serusers-bounces@iptel.org [mailto:serusers-bounces@lists.iptel.org] On Behalf Of Ranga Sent: Saturday, August 21, 2004 12:29 AM To: Bob Bob; serusers@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@yahoo.com wrote:
<;purpose=icon">http://myserver.com/get.php?id=sip:test@test.com%3E;purpos e=icon
_______________________________________________
Serusers mailing list serusers@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@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Inline. --- Vanita Jain vanita@vigyana.com wrote:
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.
<;purpose=icon">http://myserver.com/get.php?id=sip:test@test.com%3E;purpos
__________________________________ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail
At 09:24 PM 8/24/2004, Ranga wrote:
I believe, ser can not generate a new request.
Not without writing code. For example, the PA module generates requests on its own to distribute NOTIFYs.
-jiri
-- Jiri Kuthan http://iptel.org/~jiri/