SOLVED Inbound based on destination number

Status
Not open for further replies.
Jul 15, 2021
102
9
18
34
I am trying to forward an inbound call to an internal extension.

I have created an inbound route with a condition of destination_number and performing a transfer.

When the call arrives, the dialplan gets executed

send 1082 bytes to tcp/[192.168.1.11]:58484 at 11:45:12.987849: ------------------------------------------------------------------------ INVITE sip:12@192.168.1.11:58484;transport=tcp;x-reg=22BC4DB9C05484B7 SIP/2.0 Via: SIP/2.0/TCP 192.168.1.2;branch=z9hG4bKHtFZ6cUHX68ae Max-Forwards: 67 From: "externalnumbertryingtocallus" <sip:externalnumbertryingtocallus@192.168.1.2>;tag=c0H2681ZUFQyB To: <sip:12@192.168.1.11:58484;transport=tcp;x-reg=22BC4DB9C05484B7> Call-ID: ac32cac5-6d32-123a-319a-001b24383065 CSeq: 39345464 INVITE Contact: <sip:mod_sofia@192.168.1.2:5060;transport=tcp> User-Agent: FreeSWITCH Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE Supported: timer, path, replaces Allow-Events: talk, hold, conference, presence, as-feature-event, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer Content-Type: application/sdp Content-Disposition: session Content-Length: 103 X-FS-Support: update_display,send_info Remote-Party-ID: "externalnumbertryingtocallus" <sip:externalnumbertryingtocallus@192.168.1.2>;party=calling;screen=yes;privacy=off v=0 o=FreeSWITCH 1627774802 1627774803 IN IP4 192.168.1.2 s=FreeSWITCH c=IN IP4 192.168.1.2 t=0 0

However the SIP client sends the following message back

recv 374 bytes from tcp/[192.168.1.11]:58484 at 11:45:13.019912: ------------------------------------------------------------------------ SIP/2.0 488 Not Acceptable Here Via: SIP/2.0/TCP 192.168.1.2;branch=z9hG4bKHtFZ6cUHX68ae From: "externalnumbertryingtocallus" <sip:externalnumbertryingtocallus@192.168.1.2>;tag=c0H2681ZUFQyB To: <sip:12@192.168.1.11:58484;transport=tcp;x-reg=22BC4DB9C05484B7>;tag=65e084e9-bc17a69e Call-ID: ac32cac5-6d32-123a-319a-001b24383065 CSeq: 39345464 INVITE Content-Length: 0 Server: Sipnetic/1.0.41 Android

Can you let me know what is incorrect
 
Status
Not open for further replies.