Author |
Message |
tlxdavid Brekeke Member
![](images/spacer.gif)
Joined: 01 Feb 2007 Posts: 10
|
Posted: Sun Jan 06, 2008 9:22 am Post subject: Dialplan plugin called twice? |
|
|
1. Brekeke Product Name and version:
Sip server 2.0.7.2
6. Your problem:
We are using a dialplan plugin we use as follow:
Matching Patterns | $request = ^INVITE $geturi(From) = sip:(.+)@(.+) To = sip:(.+)@ $sample.dialingplan("%2","%1","%3") = (.+)
| Deploy Patterns | To = %4 $continue = no $session = com.test.AccntTest
|
All is working fine, both the dialplan & session plugins are working good. Just that the dialplan plugin is called twice in a row by the sip server (and the plugin does the same process twice and gives the same result twice). We tried not using the session plugin, but the dialplan plugin is called twice as well.
Anyone knows why is that and if it's normal?
Thanks in advance,
David. |
|
Back to top |
|
voipwell.com Partner PBX
![](images/spacer.gif)
Joined: 20 Sep 2005 Posts: 528
Location: Tannersville, Pennsylvania
|
Posted: Sun Jan 06, 2008 7:40 pm Post subject: |
|
|
Do you have any other dial plans with a continue = true in them? If so try disabling them and see if it causes your dial plan to be executed only once. |
|
Back to top |
|
tlxdavid Brekeke Member
![](images/spacer.gif)
Joined: 01 Feb 2007 Posts: 10
|
Posted: Mon Jan 07, 2008 8:46 am Post subject: |
|
|
voipwell.com wrote: |
Do you have any other dial plans with a continue = true in them? If so try disabling them and see if it causes your dial plan to be executed only once. |
No, no other dial plan. Just that one. I tried on 2 different sip servers (we have 4) and it's acting exactly the same.
I guess it's not a big deal since it works... but it calls our routing engine twice for each call and that is most probably unnecessary.
Best regards,
David. |
|
Back to top |
|
voipwell.com Partner PBX
![](images/spacer.gif)
Joined: 20 Sep 2005 Posts: 528
Location: Tannersville, Pennsylvania
|
Posted: Mon Jan 07, 2008 6:27 pm Post subject: |
|
|
The only other thing I can think of is that you should take out the $continue=no since it is implied when you don't have $continue=true. I have never seen anyone use $continue=no before. I'm guessing you put that in there to try to stop the double execution? |
|
Back to top |
|
tlxdavid Brekeke Member
![](images/spacer.gif)
Joined: 01 Feb 2007 Posts: 10
|
Posted: Tue Jan 08, 2008 1:36 pm Post subject: |
|
|
voipwell.com wrote: |
The only other thing I can think of is that you should take out the $continue=no since it is implied when you don't have $continue=true. I have never seen anyone use $continue=no before. I'm guessing you put that in there to try to stop the double execution? |
Yes I wanted to make sure no other dialplan entry was called (I think I remember having problems like that in older versions).
I removed the $continue=no, and the dialplan plugin is still called twice..[/i] |
|
Back to top |
|
Laurie Brekeke Master Guru
![](images/spacer.gif)
Joined: 07 Jan 2008 Posts: 242
|
Posted: Wed Jan 09, 2008 12:55 am Post subject: |
|
|
Is there any possibility that the client sends INVITE twice?
Can you capture packets? |
|
Back to top |
|
tlxdavid Brekeke Member
![](images/spacer.gif)
Joined: 01 Feb 2007 Posts: 10
|
Posted: Wed Jan 09, 2008 7:57 am Post subject: |
|
|
Laurie wrote: |
Is there any possibility that the client sends INVITE twice?
Can you capture packets? |
That's one of the things I checked first, only one INVITE |
|
Back to top |
|
Laurie Brekeke Master Guru
![](images/spacer.gif)
Joined: 07 Jan 2008 Posts: 242
|
Posted: Wed Jan 09, 2008 12:10 pm Post subject: |
|
|
Is the method "dialingplan" executed twice exactly same time?
Are you using the PBX in this scenario? |
|
Back to top |
|
|