Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
Diversion information in SIP header
Author Message
brendanf
Brekeke Newbie


Joined: 03 Jun 2008
Posts: 4

PostPosted: Tue Jun 03, 2008 3:46 am    Post subject: Diversion information in SIP header Reply with quote

Brekeke SIP Server 2.1.6.6
Java version: Ver 6 Upd 5
OS version: Win XP SP2

Is there any way to configure Brekeke to provide DIVERSION information in the packet header (when an endpoint is diverted/forwarded on busy/no answer)?
Back to top
View user's profile
james
Brekeke Master Guru


Joined: 10 Dec 2007
Posts: 494

PostPosted: Tue Jun 03, 2008 10:26 am    Post subject: Reply with quote

How about the following DialPlan rule?


Matching Patterns
$request = ^INVITE
$istalking = true
$geturi(To) = (.+)
Deploy Patterns
Diversion = %1
To = sip:new_destination_uri
Back to top
View user's profile
brendanf
Brekeke Newbie


Joined: 03 Jun 2008
Posts: 4

PostPosted: Wed Jun 04, 2008 8:26 am    Post subject: Reply with quote

Thanks for the prompt response james. I am very new to brekeke, hence am familiarising myself with areas such as dialplans.

I created a new dial plan, and have entered exactly as you have typed, replacing the Deploy pattern "To:xxx" with the uri of my external application server... however, still no Diversion info is provided.

I am not sure if it relevant, but I noticed in the dialplan screen that both the phrases "$istalking = true" and "Diversion=%1" are in red... is this indicating a problem?

Thanks
Back to top
View user's profile
james
Brekeke Master Guru


Joined: 10 Dec 2007
Posts: 494

PostPosted: Wed Jun 04, 2008 11:29 am    Post subject: Reply with quote

Don't worry.. Diversion and $istalking will be in red..
I wonder why "Diversion" is not shown in your packet....

Do you want to add "Diversion" in the INVITE request packet?
Or.. do you want to add "Diversion" in the response packet??

Try removing "$istalking = true" from the DialPlan rule.
Back to top
View user's profile
brendanf
Brekeke Newbie


Joined: 03 Jun 2008
Posts: 4

PostPosted: Thu Jun 05, 2008 8:39 am    Post subject: Reply with quote

I have removed $istalking -- no success I'm afraid -- still no diversion info.

I am looking for the diversion info to be provided in the INVITE packet sent from the brekeke sip server to the external client application.
Back to top
View user's profile
brendanf
Brekeke Newbie


Joined: 03 Jun 2008
Posts: 4

PostPosted: Thu Jun 05, 2008 8:46 am    Post subject: Reply with quote

Just as an after thought... do I have to apply any specific settings within the PBX administrator with regard to the call forwarding params (eg. "type of call forwarding" / "pattern setting" etc) before the appropriate diversion header info might be provided?
Back to top
View user's profile
james
Brekeke Master Guru


Joined: 10 Dec 2007
Posts: 494

PostPosted: Thu Jun 05, 2008 10:28 am    Post subject: Reply with quote

Hi

>> -- no success I'm afraid -- still no diversion

It seems your dialplan might have a syntax error or so on...
Anyway.. did you push [Apply Rules] after you edited the dialplan?


>> ... do I have to apply any specific settings within the PBX

You don't have to do it..

While you are on the phone, please go to the session detail page. ([Active Sessions] -> [Details])
Can you see your DialPlan rule name at the [rule:] fields?
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