Dialog State Notifications
From Pbxnsip Wiki
In order to receive the dialog state notifications from the PBX, you will have to follow these steps
- Login to the PBX.
- Select any registered user/extension account for editing.
- Select the 'Registration' tab
- At the bottom on the page, you will see "Add Contact" section
- Type in 'http://your-crm-server-address/your-server-handler-file' (something like http://192.168.1.10/pbxhander.php)
- Click "save"
- Observe that a 'dialog' entry is added to the list of registration (just above the 'Add Contact')
This will setup the PBX to send dialog state notifications to the 'your-crm-server-address' whenever call activity happens on the user/extension.
A sample output from the PBX is shown below
POST /dialog.xml HTTP/1.1 Host: pbxnsip.com Content-Length: 451 Content-Type: application/dialog-info+xml Accept-Language: en-us Connection: Keep-Alive Keep-Alive: 5 User-Agent: Mozilla/4.0 (compatible; PBX) <?xml version="1.0"?> <dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" version="28" state="full" entity="sip:600@localhost"> <dialog id="dummy" call-id="NTE2ZGQxYWZmNzRkYzI5Yjg5ZDdlNDcwZWNhNGJmYWQ." direction="initiator"> <state>confirmed</state> <local><identity>sip:600@localhost</identity><target uri="sip:600@localhost"/></local> <remote><identity>sip:622@localhost</identity><target uri="sip:622@localhost"/></remote> </dialog> </dialog-info>
