Hello,
In the architecture, we have 1 asterisk communicating with AVAYA (our customer). The Avaya system (Avaya CM/R017x.01.0.532.0 AVAYA-SM-7.1.1.0.711008) dispatch calls to our asterisk, and we can forward calls to this system afterwards based on the client communication (we provide an automatic system).
The automatic system that pick up calls and interact with phone callers are c++ library communicating with the asterisk via pjsip. At some point, the automatic system will ask the asterisk to forward the call, which works perfectly, the client is transferred to another extension.
The problem is: the c++ client communicating via pjsip receives a 503 Service unavailable, even though the call is correctly forwarded.
Here is the Dial plan for the forward:
[customer_city]
;customer_out_sessionmanager1
exten => _X.,1,Log(NOTICE, Forward to human ${CALLERID(all)} -> ${EXTEN})
exten => _X.,n,Transfer(PJSIP/sip:${EXTEN}@172.17.226.1)
exten => _X.,n,Log(NOTICE, Transfer status : ${TRANSFERSTATUS} for ${CALLERID(all)} -> ${EXTEN})
exten => _X.,n,Wait(10)
exten => _X.,n,Log(ERROR, Transfer has not happened for ${CALLERID(all)} -> ${EXTEN})
Note: ‘customer’ and ‘city’ are placeholders for the real customer name / location.
Here is a log trace on pastebin, since I cannot upload a file as a new user : SIP 503 service unavailable - Pastebin.com (there is a lot of logs, you can search for 503 Service not available, or Forward to human)
Let me know if I need to provide other information
As a new comer in telephony, I don’t know what’s going on here.
Kind regards