On 05/27/2010 03:56 PM, dotnetdub wrote:
Not really sure how to extract the RPID from the SIP
message sent from
the asterisk.
You can get the full header value of any header using the $hdr(...)
container[1], e.g.
$hdr(Remote-Party-ID)
There is also a dedicated pseudovariable to expose the URI specifically,
so you don't have to parse it out yourself - $re[2].
If you want to extract the user part of it for CDR storage, you can use
a URI transformation[3] to pull out that part:
$(re{uri.user})
-- Alex
[1]
http://www.kamailio.org/dokuwiki/doku.php/pseudovariables:3.0.x/#headers
[2]
http://www.kamailio.org/dokuwiki/doku.php/pseudovariables:3.0.x/#remote-par…
[3]
http://www.kamailio.org/dokuwiki/doku.php/transformations:3.0.x#uriuser
--
Alex Balashov - Principal
Evariste Systems LLC
1170 Peachtree Street
12th Floor, Suite 1200
Atlanta, GA 30309
Tel: +1-678-954-0670
Fax: +1-404-961-1892
Web:
http://www.evaristesys.com/