[asterisk-users] Query About Asterisk 1.6.0.1 Dialog Event Package.

Sunil Teli tsunil at TechMahindra.com
Thu Jan 22 05:01:22 CST 2009


Hi asterisk users,

 

           I am in need of information about how to configure the
sip.conf and extension.conf for subscribers to support the dialog event
package rfc 4235. I am using asterisk 1.6.0.1 version.

 

The below are the configuration of sip.conf and extension.conf files
which I have done.

 

I have three subscribers as one from my application(App) and other are
x-lite1 and x-lite2 phone(X-lite)  the configurations are as below for
sip.conf.

 

My Scenario.

 

            I am using asterisk-1.6.0.1, I want to know that does it
support for the Dialog Event Package (As per the rfc 4235)).

 

If yes then what config files I have to change for the same.

 

 

Example of my scenario

 

Here   App is  My Application.

         x-lite1 is X-lite Phone.

         x-lite2 is X-lite phone.

 

1)       Register a subscriber App, and then subscribe it to (for Dialog
Event Package) x-lite1 through asterisk.

2)        After subscribing I(App) receive NOTIFY from asterisk.

3)       Now establish call between x-lite1 and x-lite2 both x-lite
phones.

4)       After the call is established from x-lite1 to x-lite2, then an
NOTIFY should be sent to App (for the change in the dialog event of
x-lite1), further App should get notified for any dialog change by the
x-lite1. 

 

 My problem.

 

Here App is subscribed to X-lite1 through asterisk for the dialog event
package, and X-lite1 calls X-lite2, here the dialog events of X-lite1
should be notified to App. 

 

But I am getting 404 Not Found  for the Subscribe message, which I send
for Subscription to x-lite1 through asterisk.

 

Below are the config files. 

 

Is there any other way to solve this problem.   

 

Any help is appreciated. Thank you in advance. 

 

Sip.conf

 

[general]

port = 5060 ; Port to bind to (SIP is 5060)

bindaddr = 192.168.1.243 ; x = Asterisk server IP address

disallow=all

;allow = ulaw ; Allow all codecs

;allow = alaw

context = from-sip ; Send SIP callers that we don't know about here

canreinvite=no

directrtpsetup=yes

nat=no

 

 

;subscribecontext= localextensions ;default

allowsubscribe=yes             ; Disable support for subscriptions.
(Default is yes)

 

 

[App]

type=friend

username=App

;regexten=1234                   ; When they register, create extension
1234

;secret=password

host=dynamic

context=from-sip

mailbox=App

disallow=all

allow = alaw

;canreinvite=no

;directrtpsetup=yes

subscribecontext=internal ;localextensions  ;default

allowsubscribe=yes

 

 

[X-lite1]

type=friend

username=X-lite1

;secret=password

host=dynamic

context=from-sip

mailbox=X-lite1

disallow=all

allow = alaw

;canreinvite=no

;directrtpsetup=yes

subscribecontext=internal ;localextensions  ;default

allowsubscribe=yes

 

[X-lite2]

type=friend

username= X-lite2

;secret=password

host=dynamic

context=from-sip

mailbox= X-lite2

disallow=all

allow = alaw

;canreinvite=no

;directrtpsetup=yes

subscribecontext=internal ; localextensions   ;default

allowsubscribe=yes

 

 

 

 

The below configuration is for extension.conf.

 

extension.conf

 

[general]

static=yes ; These two lines prevent the command-line interface

writeprotect=yes ; from overwriting the config file. Leave them here.

 

[from-sip]

 

exten => App,1,Dial(SIP/App,20)

exten => App,2,Hangup

 

exten => X-lite1,1,Dial(SIP/X-lite1,20)

exten => X-lite1,2,Hangup

 

exten => X-lite2,1,Dial(SIP/X-lite2,20)

exten => X-lite2,2,Hangup

 

========================================================================
====================================================

Disclaimer:

This message and the information contained herein is proprietary and
confidential and subject to the Tech Mahindra policy statement, you may
review the policy at http://www.techmahindra.com/Disclaimer.html
externally and http://tim.techmahindra.com/Disclaimer.html internally
within Tech Mahindra.

========================================================================
====================================================
	


============================================================================================================================
 
Disclaimer:

This message and the information contained herein is proprietary and confidential and subject to the Tech Mahindra policy statement, you may review the policy at <a href="http://www.techmahindra.com/Disclaimer.html">http://www.techmahindra.com/Disclaimer.html</a> externally and <a href="http://tim.techmahindra.com/Disclaimer.html">http://tim.techmahindra.com/Disclaimer.html</a> internally within Tech Mahindra.

============================================================================================================================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090122/c074473e/attachment.htm 


More information about the asterisk-users mailing list