[SOLVED] Zulu incoming call auto-answer (PJSIP)


#1

Hi I’m trying to get Zulu to auto-answer call sent to it from a custom dialplal. Here is what I tried:

exten => s,n,Set(PJSIP_HEADER(add,Alert-info)=“answer-after = 0”)
exten => s,n,Set(PJSIP_HEADER(add,Alert-info)=“info = alert-autoanswer”)
exten => s,n,Set(PJSIP_HEADER(add,Alert-info)=“Auto Answer”)
exten => s,n,Dial(Local/90${agents_extension}@zulu-call,35,HhtrIb(func-apply-sipheaders^s^1))

I see the code properly executes in the logs:

[2021-06-24 12:17:52] VERBOSE[12365][C-0000c4dd] pbx.c: Executing [s@dialer-campaign-standard-doit:26] Set("SIP/204.10.207.101-0000adbf", "PJSIP_HEADER(add,Alert-info)=“answer-after = 0”") in new stack
[2021-06-24 12:17:52] ERROR[12365][C-0000c4dd] res_pjsip_header_funcs.c: This function requires a PJSIP channel.
[2021-06-24 12:17:52] VERBOSE[12365][C-0000c4dd] pbx.c: Executing [s@dialer-campaign-standard-doit:27] Set("SIP/204.10.207.101-0000adbf", "PJSIP_HEADER(add,Alert-info)=“info = alert-autoanswer”") in new stack
[2021-06-24 12:17:52] ERROR[12365][C-0000c4dd] res_pjsip_header_funcs.c: This function requires a PJSIP channel.
[2021-06-24 12:17:52] VERBOSE[12365][C-0000c4dd] pbx.c: Executing [s@dialer-campaign-standard-doit:28] Set("SIP/204.10.207.101-0000adbf", "PJSIP_HEADER(add,Alert-info)=“Auto Answer”") in new stack
[2021-06-24 12:17:52] ERROR[12365][C-0000c4dd] res_pjsip_header_funcs.c: This function requires a PJSIP channel.
[2021-06-24 12:17:52] VERBOSE[12365][C-0000c4dd] pbx.c: Executing [s@dialer-campaign-standard-doit:29] Dial("SIP/204.10.207.101-0000adbf", "Local/90950@zulu-call,35,HhtrIb(func-apply-sipheaders^s^1)") in new stack
[2021-06-24 12:17:52] VERBOSE[12365][C-0000c4dd] app_stack.c: Local/90950@zulu-call-0000014b;1 Internal Gosub(func-apply-sipheaders,s,1) start

The Zulu client rings but does not auto-answer.

The func-apply-sipheaders is part of freePBX ans seems to be required for the CRM URL to properly work with Zulu.

Any idea how to get the Zulu Client to auto-answer ?

Thanks.


#2

And it’s just now that I see the error messages…

res_pjsip_header_funcs.c: This function requires a PJSIP channel.

Ok. I’ll dig that first and report here…


(Itzik) #3

Not many softphones support SIP Headers to auto answer. I am not sure if Sangoma supports auto answer on their soft sip clients.

Anyway, not sure if you use Zulu mobile, if so, you should replace it with SangomConnect.


#4

According to this Zulu Client supports it since version 3.2.3:

But no details about the specific header to use…

I modified my dialplan after looking up the errors and how it’s implemented in freePBX:

exten => s,n,GoSub(func-set-sipheader,s,1(Alert-Info,"answer-after = 0"))
exten => s,n,Dial(Local/90${agents_extension}@zulu-call,35,HhtrIb(func-apply-sipheaders^s^1))

Waiting for feedback from someone in my team to test it.


#5

Ok so I got it to work. The proper dialplan code is:

exten => s,n,GoSub(func-set-sipheader,s,1(Alert-Info,"Auto Answer"))
exten => s,n,Dial(Local/90${agents_extension}@zulu-call,35,HhtrIb(func-apply-sipheaders^s^1))

(system) closed #6

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.