Just beginning here. Got latest Asterisk/PJSIP running.
Started with basic Hello World dial plan, downloaded Zoiper soft client.
Seems like basic dial plans I’m creating using book all work. But “Hangup()” part doesn’t. I get “Hello World” message but Zoiper stays connected.
Is there something wrong with Zoiper? What else should I look for?
[code]
[internal]
exten => 100,1,Answer()
same => n,Wait(1)
same => n,Playback(hello-world)
same => n,Hangup()
exten => 111,1,Answer()
same => n,Background(enter-ext-of-person)
same => n,WaitExten(5)
exten => 1,1,Playback(digits/1)
same => n,Hangup()
exten => 2,1,Playback(digits/2)
same => n,Hangup()
; Extensions to call 2 phones, from each other
exten => 101,1,Dial(PJSIP/0000FFFF0001)
exten => 102,1,Dial(PJSIP/0000FFFF0002)[/code]
Output in CLI look like this. Actually, if I just start Zoiper - it works great for first 100 call. Then, it will not hangup. Or it will connect but won’t say “Hello World” for a long time or not at all…
[Apr 16 10:47:43] WARNING[7965]: res_pjsip_pubsub.c:608 subscription_get_handler_from_rdata: No registered subscribe handler for event presence.winfo
[Apr 16 10:48:05] WARNING[7965]: res_pjsip_mwi.c:679 mwi_new_subscribe: AOR 0000FFFF0001 has no configured mailboxes. MWI subscription failed
[Apr 16 10:48:25] WARNING[7965]: res_pjsip_pubsub.c:2864 pubsub_on_rx_publish_request: No registered publish handler for event presence
[Apr 16 10:48:25] WARNING[7966]: res_pjsip_pubsub.c:608 subscription_get_handler_from_rdata: No registered subscribe handler for event presence.winfo
[Apr 16 10:48:25] WARNING[7965]: res_pjsip_mwi.c:679 mwi_new_subscribe: AOR 0000FFFF0001 has no configured mailboxes. MWI subscription failed
[Apr 16 10:48:39] WARNING[7965]: res_pjsip_pubsub.c:2864 pubsub_on_rx_publish_request: No registered publish handler for event presence
[Apr 16 10:48:39] WARNING[7965]: res_pjsip_pubsub.c:608 subscription_get_handler_from_rdata: No registered subscribe handler for event presence.winfo
[Apr 16 10:48:39] WARNING[7965]: res_pjsip_pubsub.c:2864 pubsub_on_rx_publish_request: No registered publish handler for event presence
[Apr 16 10:48:39] WARNING[7965]: res_pjsip_pubsub.c:608 subscription_get_handler_from_rdata: No registered subscribe handler for event presence.winfo
Basically, Zoiper on both my cell phone and my laptop (I set them up as different extensions) work for FIRST call only. Then they wouldn’t dial in, or would work for second call if I wait for some time. Basically, it doesn’t “reset” if it makes sense. First call works just as programmed in dial plan. Handup() works too. Consecutive calls all have issues of some kind…
Thank you for response. According to all the latest blogs and info - I didn’t even activate chan_sip as from what I see pjsip is the way to go this days, right?
Where do I obtain debug log for a call? Sorry, may sound dumb but I’m not sure if I need to get it from some log files or run something to obtain it?
P.S. I downloaded Linphone and it does work much better. All calls I make go through as programmed, however Hangup() usually doesn’t work (sometime it does). But if I hang up in soft phone and dial again - everything works great.
If you are able to get the debugging for both cases, you should raise a bug report on issues.asterisk.org. Without the detailed debugging, it is unlikely that a bug report will get processed.
Seems like some posts got lost from yesterday? I will report as soon as I understand better how all this works and get rid of all warnings in log and stuff