Hi Jorge,
In your config use dp_translate() function which searches the dialplan table to
find a pattern and
apply the translations needed. Also You can assign attribute to avp depending
on the match.
There is a dialplan example in chapter 7 of the book (Building Telephony
Systems with OpenSIPS 1.6) page 168.
Binan.
________________________________
Från: Jorge Medina <[email protected]>
Till: [email protected]; [email protected]
Skickat: torsdag, 8 november 2012 16:20
Ämne: RE: [OpenSIPS-Users] Dialplan with # or *
Hi,
Thanks for your answer,
I tested for # case:
1. Register in dialplan dialplan:
id dpid pr match_op match_exp match_len
14501 10 0 1 ^\x{0023}400 0
2. In configuration file, local call line:
if(uri =~ "^sip:[0-9]+@")
was changed by:
if((uri =~ "^sip:[0-9]+@") || (uri =~ "^sip:%23 [0-9]+@") )
and them by:
if((uri =~ "^sip:[0-9]+@") || (uri =~ "^sip:\# [0-9]+@") )
Result: Sipserver never routes these strings to softswich.
Thankyou for your help.
Best regads,
Jorge Medina
[email protected]
________________________________
Date: Fri, 2 Nov 2012 19:50:19 -0700
From: [email protected]
To: [email protected]
Subject: Re: [OpenSIPS-Users] Dialplan with # or *
Hi Jorge,
Use character code point instead:
\x{0023} matches #
\x{002A} matches *
// Binan.
________________________________
Från: Jorge Medina <[email protected]>
Till: [email protected]; [email protected]
Skickat: lördag, 3 november 2012 0:16
Ämne: [OpenSIPS-Users] Dialplan with # or *
Hi,
I need to inclue # and * characters begining dialing. Customers will dial
#400 and *20(+ digits). Sipserver never routes these strings to
softswich. I had included in dialplan intenting several ways without
results.
id dpid pr match_op match_exp match_len subst_exp
repl_exp attrs
14501 10 0 1 ^#400 0
id dpid pr match_op match_exp match_len subst_exp
repl_exp attrs
14500 11 0 1 ^\*20[0-9]* 0
Thank you for your help!
Jorge Medina
[email protected]
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________ Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users