Hi all,
I am using Asterisk server (version 1.8.11.0) to make calls from a SIP client (Linphone 3.6.1) mobile version (Linphone Android 2.0) using 3G connection.
When I try to send a SIP message, sometimes it works, sometimes not.
I changed some settings in the android linphone app:
Call:
[Yes] Send SIP INFO DTMFs
[No] Send RFC2833 DTMFs
Network:
[NO] Use random ports
[5060] SIP port to use
[UDP] Transport
[Yes] Enable push notifications
Just now I am sending the message “Hello World!” from the extension “2090”
exten => 2090, 1, Answer()
exten => 2090, 2, SendText(Hello World!)
exten => 2090, 3, Hangup()
and when I call the 2090 it is sending the message just sometimes.
The Asterisk output throws the error “-- Got SIP MESSAGE response 500 “Server internal error” back from host ‘82.XXX.XXX.XXX:12069’” as you can see here:
localhost*CLI>
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Executing [2090@from-internal:1] Answer("SIP/2080-00000068", "") in new stack
-- Executing [2090@from-internal:2] SendText("SIP/2080-00000068", "Hello World!") in new stack
-- Executing [2090@from-internal:3] Hangup("SIP/2080-00000068", "") in new stack
== Spawn extension (from-internal, 2090, 3) exited non-zero on 'SIP/2080-00000068'
-- Executing [h@from-internal:1] Macro("SIP/2080-00000068", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("SIP/2080-00000068", "1?endmixmoncheck") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [s@macro-hangupcall:9] NoOp("SIP/2080-00000068", "End of MIXMON check") in new stack
-- Executing [s@macro-hangupcall:10] GotoIf("SIP/2080-00000068", "1?nomeetmemon") in new stack
-- Goto (macro-hangupcall,s,15)
-- Executing [s@macro-hangupcall:15] NoOp("SIP/2080-00000068", "MEETME_RECORDINGFILE=") in new stack
-- Executing [s@macro-hangupcall:16] GotoIf("SIP/2080-00000068", "1?noautomon") in new stack
-- Goto (macro-hangupcall,s,18)
-- Executing [s@macro-hangupcall:18] NoOp("SIP/2080-00000068", "TOUCH_MONITOR_OUTPUT=") in new stack
-- Executing [s@macro-hangupcall:19] GotoIf("SIP/2080-00000068", "1?noautomon2") in new stack
-- Goto (macro-hangupcall,s,25)
-- Executing [s@macro-hangupcall:25] NoOp("SIP/2080-00000068", "MONITOR_FILENAME=") in new stack
-- Executing [s@macro-hangupcall:26] GotoIf("SIP/2080-00000068", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,29)
-- Executing [s@macro-hangupcall:29] GotoIf("SIP/2080-00000068", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,32)
-- Executing [s@macro-hangupcall:32] GotoIf("SIP/2080-00000068", "1?theend") in new stack
-- Goto (macro-hangupcall,s,34)
-- Executing [s@macro-hangupcall:34] Hangup("SIP/2080-00000068", "") in new stack
== Spawn extension (macro-hangupcall, s, 34) exited non-zero on 'SIP/2080-00000068' in macro 'hangupcall'
== Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/2080-00000068'
-- Got SIP MESSAGE response 500 "Server internal error" back from host '31.4.212.215:38288'
-- Registered SIP '2080' at 172.YY.Y.YY:64779
-- Registered SIP '2040' at 82.XXX.XXX.XXX:12069
-- Registered SIP '2040' at 82.XXX.XXX.XXX:13394
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Executing [2090@from-internal:1] Answer("SIP/2040-00000069", "") in new stack
-- Executing [2090@from-internal:2] SendText("SIP/2040-00000069", "Hello World!") in new stack
-- Executing [2090@from-internal:3] Hangup("SIP/2040-00000069", "") in new stack
== Spawn extension (from-internal, 2090, 3) exited non-zero on 'SIP/2040-00000069'
-- Executing [h@from-internal:1] Macro("SIP/2040-00000069", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("SIP/2040-00000069", "1?endmixmoncheck") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [s@macro-hangupcall:9] NoOp("SIP/2040-00000069", "End of MIXMON check") in new stack
-- Executing [s@macro-hangupcall:10] GotoIf("SIP/2040-00000069", "1?nomeetmemon") in new stack
-- Goto (macro-hangupcall,s,15)
-- Executing [s@macro-hangupcall:15] NoOp("SIP/2040-00000069", "MEETME_RECORDINGFILE=") in new stack
-- Executing [s@macro-hangupcall:16] GotoIf("SIP/2040-00000069", "1?noautomon") in new stack
-- Goto (macro-hangupcall,s,18)
-- Executing [s@macro-hangupcall:18] NoOp("SIP/2040-00000069", "TOUCH_MONITOR_OUTPUT=") in new stack
-- Executing [s@macro-hangupcall:19] GotoIf("SIP/2040-00000069", "1?noautomon2") in new stack
-- Goto (macro-hangupcall,s,25)
-- Executing [s@macro-hangupcall:25] NoOp("SIP/2040-00000069", "MONITOR_FILENAME=") in new stack
-- Executing [s@macro-hangupcall:26] GotoIf("SIP/2040-00000069", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,29)
-- Executing [s@macro-hangupcall:29] GotoIf("SIP/2040-00000069", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,32)
-- Executing [s@macro-hangupcall:32] GotoIf("SIP/2040-00000069", "1?theend") in new stack
-- Goto (macro-hangupcall,s,34)
-- Executing [s@macro-hangupcall:34] Hangup("SIP/2040-00000069", "") in new stack
== Spawn extension (macro-hangupcall, s, 34) exited non-zero on 'SIP/2040-00000069' in macro 'hangupcall'
== Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/2040-00000069'
-- Got SIP MESSAGE response 500 "Server internal error" back from host '82.XXX.XXX.XXX:12069'
localhost*CLI>
Can anybody tell me why it happens? Is there a solution for it?
Thanks in advance for your help.