Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
Dialplan plugin called twice?
Author Message
tlxdavid
Brekeke Member


Joined: 01 Feb 2007
Posts: 10

PostPosted: Sun Jan 06, 2008 9:22 am    Post subject: Dialplan plugin called twice? Reply with quote

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
View user's profile
voipwell.com
Partner PBX


Joined: 20 Sep 2005
Posts: 528
Location: Tannersville, Pennsylvania

PostPosted: Sun Jan 06, 2008 7:40 pm    Post subject: Reply with quote

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
View user's profile
tlxdavid
Brekeke Member


Joined: 01 Feb 2007
Posts: 10

PostPosted: Mon Jan 07, 2008 8:46 am    Post subject: Reply with quote

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
View user's profile
voipwell.com
Partner PBX


Joined: 20 Sep 2005
Posts: 528
Location: Tannersville, Pennsylvania

PostPosted: Mon Jan 07, 2008 6:27 pm    Post subject: Reply with quote

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
View user's profile
tlxdavid
Brekeke Member


Joined: 01 Feb 2007
Posts: 10

PostPosted: Tue Jan 08, 2008 1:36 pm    Post subject: Reply with quote

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
View user's profile
Laurie
Brekeke Master Guru


Joined: 07 Jan 2008
Posts: 241

PostPosted: Wed Jan 09, 2008 12:55 am    Post subject: Reply with quote

Is there any possibility that the client sends INVITE twice?

Can you capture packets?
Back to top
View user's profile
tlxdavid
Brekeke Member


Joined: 01 Feb 2007
Posts: 10

PostPosted: Wed Jan 09, 2008 7:57 am    Post subject: Reply with quote

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
View user's profile
Laurie
Brekeke Master Guru


Joined: 07 Jan 2008
Posts: 241

PostPosted: Wed Jan 09, 2008 12:10 pm    Post subject: Reply with quote

Is the method "dialingplan" executed twice exactly same time?

Are you using the PBX in this scenario?
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    Brekeke Forum Index » Brekeke SIP Server Forum All times are GMT - 7 Hours
Page 1 of 1