F.Y.I
http://osdir.com/ml/telephony.sipp.user/2008-05/msg00050.html
=============================
If there are hops in ur sip
network<http://osdir.com/ml/telephony.sipp.user/2008-05/msg00050.html#>then
u have to fetch the values of via header field from INVITE and
replace
in 180 ringing.
Here I give u the sample, how I m using...
<recv request="INVITE" rrs="true" >
rrs="true" crlf="true"
<action>
<ereg regexp="(SIP.*branch=[^[:space:]]*)" search_in="hdr" occurence="2"
header="Via:" assign_to="3,6" />
<ereg regexp="(SIP.*branch=[^[:space:]]*)" search_in="hdr" occurence="1"
header="Via:" assign_to="8,7" />
<ereg regexp=".*" search_in="hdr" occurence="1" header="Record-Route:"
assign_to="9" />
<ereg regexp="INVITE sip:([[:alnum:]]*)" search_in="msg"
assign_to="10,11" />
</action>
</recv>
<send>
<![CDATA[
SIP/2.0 180 Ringing
Via: [$7]
Via: [$6]
[last_From:]
[last_To:];tag=[call_number]-INV-UAS
[last_Call-ID:]
[last_CSeq:]
Contact: [field0] <sip:[EMAIL PROTECTED]:[local_port]>
[last_Record-Route:]
Content-Length: 0
]]>
</send>
Hope it will help u ..
Gomtesh
==========================
2008/11/11 Lisilin <[EMAIL PROTECTED]>
> Hi all,
>
> I'm sorry that I met a question.
> The sipp UAS couldn't response normally Invite message of two Via fields
> using [last_Via:]. It will unite two Via fields to one, for example:
> Invite:
> Via: SIP/2.0/UDP 192.168.10.218;branch=z9hG4bK3b2e.a8804677.0
> Via: SIP/2.0/UDP 192.168.10.233:5060;received=192.168.10.233
> ;branch=z9hG4bK19352f1d;rport=5060
>
> 200 OK:
> Via: SIP/2.0/UDP 192.168.10.218;branch=z9hG4bK3b2e.a8804677.0 ,
> SIP/2.0/UDP 192.168.10.233:5060;received=192.168.10.233
> ;branch=z9hG4bK19352f1d;rport=5060
>
> How to get two Via fields using XML scene file?
> Does any one help me to figure out it?
>
> Thanks.
>
> --------------
> Lisilin
> 2008-11-11
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Sipp-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sipp-users
>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Sipp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sipp-users