[OpenSIPS-Users] Dialplan with # or *

Binan AL Halabi binanalhalabi at yahoo.com
Thu Nov 8 17:47:02 CET 2012


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 <jorgemmm4562 at hotmail.com>
Till: binanalhalabi at yahoo.com; john.ramirez at une.com.co 
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 
 
jorgemmm4562 at hotmail.com
 
 
 

  
 


________________________________
 Date: Fri, 2 Nov 2012 19:50:19 -0700
From: binanalhalabi at yahoo.com
To: users at lists.opensips.org
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 <jorgemmm4562 at hotmail.com>
Till: users at lists.opensips.org; bogdan at opensips.org 
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 
jorgemmm4562 at hotmail.com
_______________________________________________
Users mailing list
Users at lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



_______________________________________________ Users mailing list Users at lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20121108/1fe5bce1/attachment-0001.htm>


More information about the Users mailing list