Hi ! I am now study on dev-4.1.3 . the default cfg working well , however included "ims_qos" modules , it 's not work . i want this module , not configure a ims "p-icsf p-cscf scsf " ( thinking problems??) the aim is to send qos request for some specific contacts ( i want assign in the mod.c/ims_qos , w_rx_aar_register). Could you please help me achieve this goal.
Thanks !
my details as follows:(based on default cfg file.) 1, make cfg includes... ( dialog_ng, ims_usrloc_pcscf, cdp,cdp_avp, ims_qos ) 2, make and install ( it;s start working ) 3, modify cfg: modparam("dialog_ng", "dlg_flag", FLT_DIALOG) modparam("dialog_ng", "timeout_avp", "$avp(DLG_TIMEOUT_AVP)") modparam("dialog_ng", "detect_spirals", 0) modparam("dialog_ng", "profiles_no_value", "orig ; term")
modparam("cdp","config_file","/usr/local/etc/kamailio/DiameterPeer.xml") modparam("ims_qos","rx_dest_realm","NETWORKNAME")
... ###in route main .. i hope "ims_qos" module working , , , ,
# Handle Registrations: if (is_method("REGISTER")) { route(REGISTER); exit; } ....
route[REGISTER]{ if(Rx_AAR_Register("REG_AAR_REPLY","location")==0) exit; }
route[REG_AAR_REPLY]{ log(1,"\n\n LIUJIAHAO\n\n"); switch($avp(s:aar_return_code)){ case 1: xlog("L_DBG","Diameter: AAR success .. \n"); break; default: xlog("L_ERR","Diameter: AAR failed .. \n"); send_reply("403","Can't register to QoS .. \n"); exit; } }
4.sys log messages... (the red line maybe the problems, that is in red line upper param.)
Jun 7 14:28:30 cent-03 kamailio: WARNING: <core> [socket_info.c:1397]: fix_hostname(): WARNING: fix_hostname: could not rev. resolve 192.168.1.166 Jun 7 14:28:30 cent-03 kamailio: WARNING: <core> [socket_info.c:1397]: fix_hostname(): WARNING: fix_hostname: could not rev. resolve 192.168.1.166 Jun 7 14:28:30 cent-03 kamailio: INFO: <core> [tcp_main.c:4836]: init_tcp(): init_tcp: using epoll_lt as the io watch method (autodetected) Jun 7 14:28:30 cent-03 kamailio[3114]: INFO: rr [../outbound/api.h:54]: ob_load_api(): Failed to import bind_ob Jun 7 14:28:30 cent-03 kamailio[3114]: INFO: rr [rr_mod.c:159]: mod_init(): outbound module not available Jun 7 14:28:30 cent-03 kamailio[3114]: INFO: usrloc [hslot.c:53]: ul_init_locks(): locks array size 512 Jun 7 14:28:30 cent-03 kamailio[3114]: INFO: ims_usrloc_pcscf [hslot.c:62]: ul_init_locks(): locks array size 512 Jun 7 14:28:30 cent-03 kamailio[3114]: ERROR: <core> [kstats_wrapper.c:73]: register_stat(): counter usrloc.location-contacts already registered Jun 7 14:28:30 cent-03 kamailio[3114]: ERROR: ims_usrloc_pcscf [udomain.c:121]: new_udomain(): failed to add stat variable Jun 7 14:28:30 cent-03 kamailio[3114]: ERROR: ims_usrloc_pcscf [dlist.c:193]: new_dlist(): creating domain structure failed Jun 7 14:28:30 cent-03 kamailio[3114]: ERROR: ims_usrloc_pcscf [dlist.c:233]: register_udomain(): failed to create new domain Jun 7 14:28:30 cent-03 kamailio[3114]: ERROR: ims_qos [mod.c:942]: fixup_aar_register(): Error doing fixup on assign save Jun 7 14:28:30 cent-03 kamailio[3114]: ERROR: <core> [route.c:1215]: fix_actions(): fixing failed (code=-1) at cfg:/usr/local/etc/kamailio/kamailio.cfg:354 Jun 7 14:28:30 cent-03 kamailio[3114]: ERROR: <core> [route.c:1215]: fix_actions(): fixing failed (code=-1) at cfg:/usr/local/etc/kamailio/kamailio.cfg:356 Jun 7 14:28:30 cent-03 kamailio[3114]: INFO: cdp [mod.c:251]: cdp_exit(): CDiameterPeer child stopping ... Jun 7 14:28:30 cent-03 kamailio[3114]: INFO: cdp [diameter_peer.c:428]: diameter_peer_destroy(): destroy_diameter_peer(): Terminating all children... Jun 7 14:28:30 cent-03 kamailio[3114]: INFO: cdp [diameter_peer.c:447]: diameter_peer_destroy(): destroy_diameter_peer(): All processes terminated. Cleaning up. Jun 7 14:28:30 cent-03 kamailio[3114]: INFO: cdp [worker.c:137]: worker_destroy(): Unlocking workers waiting on empty queue... Jun 7 14:28:30 cent-03 kamailio[3114]: INFO: cdp [worker.c:140]: worker_destroy(): Unlocking workers waiting on full queue... Jun 7 14:28:30 cent-03 kamailio[3114]: CRITICAL: cdp [diameter_peer.c:487]: diameter_peer_destroy(): destroy_diameter_peer(): Bye Bye from C Diameter Peer test Jun 7 14:28:30 cent-03 kamailio[3114]: INFO: cdp [mod.c:253]: cdp_exit(): ... CDiameterPeer child stoped
Could you please guide me where am I doing wrong ?
Regards, Good