[SR-Users] PSTN Routing with Prefix
Abdul Gafar
abdul.gafar.tim at gmail.com
Wed Dec 3 10:03:52 CET 2014
Hi
No posible, please use append_branch() and seturi("
sip:08121069941 at 10.70.1.1:5060"); for forward call
UAC---->KAMAILIO A---->MSC---->Mobile Subscriber
# if someone calls B, the call should be forwarded to C too.
if (method=="INVITE" && uri=~"sip:B at xx.xxx.xx ")
{
# copy the current branch (branches[0]) into
# a new branch (branches[1])
append_branch();
# all URI manipulation functions work on branches[0]
# thus, URI manipulation does not touch the
# appended branch (branches[1])
seturi("sip:C at domain");
# now: branch 0 = C at domain
# branch 1 = B at xx.xx.xx.xx
See Detail
http://www.open-voip.org/index.php?title=Kamailio_%22revert%22_%22append_branch%22_%22rewritehostport%22
//Gafar
On Wed, Dec 3, 2014 at 5:56 PM, Massimo Varriale (IPZeta) <
m.varriale at ipzeta.it> wrote:
> Hi,
> I'm trying to send outbound calls to an external IP address adding a
> prefix, is this possible using function rewritehostport?
>
> Thank you
> Max
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20141203/c91b2aef/attachment.html>
More information about the sr-users
mailing list