Hello everyone, 
Till now we were working with asterisk to handle BLF. 
But then we decided to move everything to kamailio and hence i started working 
on BLF with kamailio. 
I have already configured kamailio for Call handling and presence information. 

>From different pages on Internet, I have found some information about 
>configuration of kamailio+blf. And i did so, but somehow things are not 
>working as they should. 
I have done following changes to kamailio.cfg file 



loadmodule "presence.so" 
loadmodule "presence_xml.so" 
loadmodule "presence_dialoginfo.so" 
loadmodule "presence_mwi.so" 
loadmodule "dialog.so" 
loadmodule "pua.so" 
loadmodule "pua_dialoginfo.so" 



modparam("presence", "fallback2db", 1) 
modparam("dialog", "dlg_flag", 4) 
modparam("dialog", "db_url", 
"mysql://xxxxxxxxx:xxxxxxxxxxxxxx@localhost/openser") 
modparam("dialog", "db_mode", 1) 
modparam("pua", "db_url", 
"mysql://xxxxxxxxx:xxxxxxxxxxxxxx@localhost/openser") 

Now when my phone(yealink VP530), sends subscribe request it looks as below: 

SUBSCRIBE sip:1001@172.16.27.66 SIP/2.0 
Via: SIP/2.0/UDP 172.16.27.61:5063;branch=z9hG4bK10464096 
From: "1000" <sip:1000@172.16.27.66>;tag=393923564 
To: <sip:1001@172.16.27.66> 
Call-ID: 1572901975@172.16.27.61 
CSeq: 1 SUBSCRIBE 
Contact: <sip:1000@172.16.27.61:5063> 
Accept: application/dialog-info+xml 
Max-Forwards: 70 
User-Agent: VP530P 23.70.0.40 
Expires: 120 
Event: dialog 
Content-Length: 0 

In response to this message, Kamailio returns 202 with following information 

SIP/2.0 202 OK 
Via: SIP/2.0/UDP 172.16.27.61:5063;branch=z9hG4bK245273058 
From: "1000" <sip:1000@172.16.27.66>;tag=393923564 
To: <sip:1001@172.16.27.66>;tag=a6a1c5f60faecf035a1ae5b6e96e979a-8ee2 
Call-ID: 1572901975@172.16.27.61 
CSeq: 2 SUBSCRIBE 
Expires: 120 
Contact: <sip:172.16.27.66:5060> 
Server: kamailio (3.0.0 (i386/linux)) 
Content-Length: 0 



Followed by a NOTIFY 

NOTIFY sip:1000@172.16.27.61:5063 SIP/2.0 
Via: SIP/2.0/UDP 172.16.27.66;branch=z9hG4bK3ccd.adfbc416.0 
To: sip:1000@172.16.27.66;tag=2058189864 
From: sip:1001@172.16.27.66;tag=a6a1c5f60faecf035a1ae5b6e96e979a-6cd8 
CSeq: 1 NOTIFY 
Call-ID: 2040123403@172.16.27.61 
Content-Length: 0 
User-Agent: kamailio (3.0.0 (i386/linux)) 
Max-Forwards: 70 
Event: dialog 
Contact: <sip:172.16.27.66:5060> 
Subscription-State: active;expires=170 




During subscribe message asked for XML based reply, yet NOTIFY doesnt send any 
XML. and hence there is no impact of this message on device. Nothing is 
changed.Also there's nothing when i call from this device to another, ideally i 
should get some NOTIFY messages 

So, i think i am doing something wrong in Configuration. 

Can anyone please help me in it. If you need any other info, i'll provide you. 







-- 
Regards, 

Hemanshu Patel 

Senior Software Engg 
P Help the environment – please don't print this email unless you really need 
to! 

_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to