[OpenSER-Users] To URI

Marc LEURENT lftsy at free.fr
Wed Aug 29 11:55:44 CEST 2007


Thanks, it look likes cleaner!
Have a nice day

Aki Rehn a écrit :
> Try the subst function from textops module. Something like:
> 
> # untested
> subst('/^To: *<sip:(.*)[^@]sd-7501.dedibox.fr(.*)$/To: <sip:\1 at 212.129.6.65\2/i')
> 
> 
> Br,
> Aki
> 
> On Wed, Aug 29, 2007 at 10:52:53AM +0200, Marc LEURENT wrote:
>> A combination of (see below) should be enough...
>> remove_hf("To");
>> append_hf("To: <sip:0677832974 at 212.129.6.65:5060;user=phone>. \r\n", "From");
>>
>> Marc LEURENT a écrit :
>>> Hello everybody, I have booked fights, hotel and tickets for the Rome VON meeting!! I hope most of you will be there!
>>>
>>> I have a little problem...
>>> My OpenSER server has the IP 88.191.45.91
>>> My SIP/PSTN gateway has the IP 212.129.6.65
>>> I do not require authentication to send INVITE from my openser IP.
>>> How is it possible to change the
>>> To: <sip:0677832974 at sd-7501.dedibox.fr:5060;user=phone>.
>>> 	to
>>> To: <sip:0677832974 at 212.129.6.65:5060;user=phone>. ??
>>>
>>> Thanks!!
>>> See you soon in Rome
>>>
>>> #
>>> U 88.191.45.91:5060 -> 212.129.6.65:5060
>>> INVITE sip:0677832974 at 212.129.6.65:5060 SIP/2.0.
>>> Record-Route: <sip:88.191.45.91;lr=on;ftag=c0a80101-1ca265a>.
>>> Via: SIP/2.0/UDP 88.191.45.91;branch=z9hG4bKd06b.6af66bc6.0.
>>> Via: SIP/2.0/UDP 192.168.95.81:5060;rport=62704;received=81.57.0.22;branch=z9hG4bK4296575315214209209.
>>> From: "Marc LEURENT"<sip:mleurent at sd-7501.dedibox.fr:5060;user=phone>;tag=c0a80101-1ca265a.
>>> To: <sip:0677832974 at sd-7501.dedibox.fr:5060;user=phone>.
>>> Call-ID: 7b7f245-c0a80101-0-20 at 192.168.95.81.
>>> CSeq: 1 INVITE.
>>> Max-Forwards: 50.
>>> Supported: timer, replaces.
>>> Session-Expires: 1800.
>>> Allow: INVITE,ACK,BYE,CANCEL,OPTIONS,PRACK,SUBSCRIBE,NOTIFY,UPDATE,REFER,REGISTER,INFO.
>>> Contact: <sip:mleurent at 81.57.0.22:62704;user=phone;nat=yes>.
>>> User-Agent: THOMSON ST2030 hw0 fw1.56 00-0E-50-4E-AF-C4.
>>> Allow-Events: refer,dialog,message-summary,check-sync,talk,hold.
>>> Content-Type: application/sdp.
>>> Content-Length: 295.
>>> .
>>> v=0.
>>> o=mleurent 30025307 30025307 IN IP4 192.168.95.81.
>>> s=-.
>>> c=IN IP4 88.191.45.91.
>>> t=0 0.
>>> m=audio 35154 RTP/AVP 8 0 18 4 97.
>>> a=rtpmap:8 PCMA/8000.
>>> a=rtpmap:0 PCMU/8000.
>>> a=rtpmap:18 G729/8000.
>>> a=rtpmap:4 G723/8000.
>>> a=rtpmap:97 telephone-event/8000.
>>> a=fmtp:97 0-15.
>>> a=sendrecv.
>>> a=nortpproxy:yes.
>>>
>>>
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at openser.org
>>> http://openser.org/cgi-bin/mailman/listinfo/users
>> _______________________________________________
>> Users mailing list
>> Users at openser.org
>> http://openser.org/cgi-bin/mailman/listinfo/users




More information about the Users mailing list