Calls are made but no voice

Hi,

I am able to set up call between 2 sip clients using Asterisk Manager but not able to get voice at either client.

I kept high priority of gsm codec in sip.conf and csipsimple client but no luck.

Can any one help me here to get it working?

Thanks

Here is the cli log.

== Manager ‘myserver’ logged on from xx.xxx.xxx.xx
== Using SIP RTP CoS mark 5
> Channel SIP/88800003-0000002d was answered.
[Jan 8 21:07:49] ERROR[13674]: utils.c:1211 ast_careful_fwrite: fwrite() returned error: Connection reset by peer
[Jan 8 21:07:49] ERROR[13674]: utils.c:1211 ast_careful_fwrite: fwrite() returned error: Broken pipe
== Manager ‘myserver’ logged off from xx.xxx.xxx.xx
– Executing [88800004@myserver-ami:1] Answer(“SIP/88800003-0000002d”, “”) in new stack
– Executing [88800004@myserver-ami:2] NoOp(“SIP/88800003-0000002d”, “SIP/88800003-0000002d”) in new stack
– Executing [88800004@myserver-ami:3] NoOp(“SIP/88800003-0000002d”, “DID ROUTER START [ulaw] === [ulaw]”) in new stack
– Executing [88800004@myserver-ami:4] Set(“SIP/88800003-0000002d”, “PATIENT_DID=SIP/88800003-0000002d”) in new stack
– Executing [88800004@myserver-ami:5] Set(“SIP/88800003-0000002d”, “PATIENT_CLI=88800003-0000002d”) in new stack
– Executing [88800004@myserver-ami:6] Set(“SIP/88800003-0000002d”, “DID=88800003-0000002d”) in new stack
– Executing [88800004@myserver-ami:7] Set(“SIP/88800003-0000002d”, “NUMBERS=88800004”) in new stack
– Executing [88800004@myserver-ami:8] GotoIf(“SIP/88800003-0000002d”, “0?NODIALOUT:NEXT”) in new stack
– Goto (myserver-ami,88800004,9)
– Executing [88800004@myserver-ami:9] Set(“SIP/88800003-0000002d”, “NUM=0”) in new stack
– Executing [88800004@myserver-ami:10] Set(“SIP/88800003-0000002d”, “NUM=1”) in new stack
– Executing [88800004@myserver-ami:11] Set(“SIP/88800003-0000002d”, “NUM=2”) in new stack
– Executing [88800004@myserver-ami:12] Set(“SIP/88800003-0000002d”, “X=1”) in new stack
– Executing [88800004@myserver-ami:13] Set(“SIP/88800003-0000002d”, “Y=1”) in new stack
– Executing [88800004@myserver-ami:14] While(“SIP/88800003-0000002d”, “1”) in new stack
– Executing [88800004@myserver-ami:15] Set(“SIP/88800003-0000002d”, “dialcommand=88800004”) in new stack
– Executing [88800004@myserver-ami:16] NoOp(“SIP/88800003-0000002d”, “88800004”) in new stack
– Executing [88800004@myserver-ami:17] Set(“SIP/88800003-0000002d”, “diallen=8”) in new stack
– Executing [88800004@myserver-ami:18] ExecIf(“SIP/88800003-0000002d”, “0?Set(dialcommand=0800004):Noop(88800004)”) in new stack
– Executing [88800004@myserver-ami:19] System(“SIP/88800003-0000002d”, "echo -e “Channel: SIP/88800004\nExtension: 88800004\nWaitTime: 60\nMaxRetries: \nRetryTime: \nAlwa$”) in new stack
– Executing [88800004@myserver-ami:20] Set(“SIP/88800003-0000002d”, “Y=2”) in new stack
– Executing [88800004@myserver-ami:21] Set(“SIP/88800003-0000002d”, “X=2”) in new stack
– Executing [88800004@myserver-ami:22] ExecIf(“SIP/88800003-0000002d”, “1?Set(NUMS=SIP/88800004&):noop()”) in new stack
– Executing [88800004@myserver-ami:23] EndWhile(“SIP/88800003-0000002d”, “”) in new stack
– Executing [88800004@myserver-ami:14] While(“SIP/88800003-0000002d”, “1”) in new stack
– Executing [88800004@myserver-ami:15] Set(“SIP/88800003-0000002d”, “dialcommand=”) in new stack
– Executing [88800004@myserver-ami:16] NoOp(“SIP/88800003-0000002d”, “”) in new stack
– Executing [88800004@myserver-ami:17] Set(“SIP/88800003-0000002d”, “diallen=0”) in new stack
– Executing [88800004@myserver-ami:18] ExecIf(“SIP/88800003-0000002d”, “0?Set(dialcommand=0):Noop()”) in new stack
– Executing [88800004@myserver-ami:19] System(“SIP/88800003-0000002d”, "echo -e “Channel: SIP/\nExtension: \nWaitTime: 60\nMaxRetries: \nRetryTime: \nAlwa$”) in new stack
– Executing [88800004@myserver-ami:20] Set(“SIP/88800003-0000002d”, “Y=3”) in new stack
– Executing [88800004@myserver-ami:21] Set(“SIP/88800003-0000002d”, “X=3”) in new stack
– Executing [88800004@myserver-ami:22] ExecIf(“SIP/88800003-0000002d”, “0?Set(NUMS=SIP/88800004&SIP/&):noop()”) in new stack
– Executing [88800004@myserver-ami:23] EndWhile(“SIP/88800003-0000002d”, “”) in new stack
– Executing [88800004@myserver-ami:14] While(“SIP/88800003-0000002d”, “0”) in new stack
– Executing [88800004@myserver-ami:24] NoOp(“SIP/88800003-0000002d”, "DIALSTATUS = ") in new stack
– Executing [88800004@myserver-ami:25] NoOp(“SIP/88800003-0000002d”, “SIP/88800004&”) in new stack
– Executing [88800004@myserver-ami:26] Dial(“SIP/88800003-0000002d”, “SIP/88800004,30,G(t1^88800003-0000002d^1)”) in new stack
== Using SIP RTP CoS mark 5
– Called SIP/88800004
– SIP/88800004-0000002e is ringing
– SIP/88800004-0000002e answered SIP/88800003-0000002d
– Executing [88800003-0000002d@t1:1] ExecIf(“SIP/88800003-0000002d”, “0?Hangup:Answer”) in new stack
– Executing [88800003-0000002d@t1:2] NoOp(“SIP/88800003-0000002d”, “88800003-0000002d”) in new stack
– Executing [88800003-0000002d@t1:3] NoOp(“SIP/88800003-0000002d”, “DID ROUTER START [ulaw] === [ulaw]”) in new stack
– Executing [88800003-0000002d@t1:4] Dial(“SIP/88800003-0000002d”, “SIP/88800003-0000002d,45,Tto”) in new stack
– Executing [88800003-0000002d@t1:2] NoOp(“SIP/88800004-0000002e”, “88800003-0000002d”) in new stack
– Executing [88800003-0000002d@t1:3] NoOp(“SIP/88800004-0000002e”, “DID ROUTER START [ulaw] === [ulaw]”) in new stack
– Executing [88800003-0000002d@t1:4] Dial(“SIP/88800004-0000002e”, “SIP/88800003-0000002d,45,Tto”) in new stack
== Using SIP RTP CoS mark 5
== Using SIP RTP CoS mark 5
[Jan 8 21:07:51] ERROR[13678]: netsock2.c:263 ast_sockaddr_resolve: getaddrinfo(“88800003-0000002d”, “(null)”, …): Name or service not known
[Jan 8 21:07:51] WARNING[13678]: chan_sip.c:5335 create_addr: No such host: 88800003-0000002d
[Jan 8 21:07:51] WARNING[13678]: acl.c:708 ast_ouraddrfor: Cannot connect
[Jan 8 21:07:51] WARNING[13678]: chan_sip.c:3358 __sip_xmit: sip_xmit of 0x101727f0 (len 915) to (null) returned -1: Invalid argument
– Called SIP/88800003-0000002d
[Jan 8 21:07:51] ERROR[13675]: netsock2.c:263 ast_sockaddr_resolve: getaddrinfo(“88800003-0000002d”, “(null)”, …): Name or service not known
[Jan 8 21:07:51] WARNING[13675]: chan_sip.c:5335 create_addr: No such host: 88800003-0000002d
[Jan 8 21:07:51] WARNING[13675]: acl.c:708 ast_ouraddrfor: Cannot connect
[Jan 8 21:07:51] WARNING[13675]: chan_sip.c:3358 __sip_xmit: sip_xmit of 0x10249a30 (len 915) to (null) returned -1: Invalid argument
– Called SIP/88800003-0000002d
[Jan 8 21:07:52] WARNING[12240]: chan_sip.c:3358 __sip_xmit: sip_xmit of 0x101727f0 (len 915) to (null) returned -1: Invalid argument
[Jan 8 21:07:52] WARNING[12240]: chan_sip.c:3358 __sip_xmit: sip_xmit of 0x10249a30 (len 915) to (null) returned -1: Invalid argument
[Jan 8 21:07:53] WARNING[12240]: chan_sip.c:3358 __sip_xmit: sip_xmit of 0x101727f0 (len 915) to (null) returned -1: Invalid argument
[Jan 8 21:07:53] WARNING[12240]: chan_sip.c:3358 __sip_xmit: sip_xmit of 0x10249a30 (len 915) to (null) returned -1: Invalid argument
[Jan 8 21:07:55] WARNING[12240]: chan_sip.c:3358 __sip_xmit: sip_xmit of 0x101727f0 (len 915) to (null) returned -1: Invalid argument
[Jan 8 21:07:55] WARNING[12240]: chan_sip.c:3358 __sip_xmit: sip_xmit of 0x10249a30 (len 915) to (null) returned -1: Invalid argument
[Jan 8 21:07:59] WARNING[12240]: chan_sip.c:3358 __sip_xmit: sip_xmit of 0x101727f0 (len 915) to (null) returned -1: Invalid argument
[Jan 8 21:07:59] WARNING[12240]: chan_sip.c:3358 __sip_xmit: sip_xmit of 0x10249a30 (len 915) to (null) returned -1: Invalid argument
== Spawn extension (t1, 88800003-0000002d, 4) exited non-zero on ‘SIP/88800003-0000002d’
– Executing [h@t1:1] NoOp(“SIP/88800003-0000002d”, “Here from next priority we can add hangup logic”) in new stack
– Executing [h@t1:2] Hangup(“SIP/88800003-0000002d”, “”) in new stack
== Spawn extension (t1, h, 2) exited non-zero on ‘SIP/88800003-0000002d’
[Jan 8 21:08:07] WARNING[12240]: chan_sip.c:3358 __sip_xmit: sip_xmit of 0x101727f0 (len 915) to (null) returned -1: Invalid argument
[Jan 8 21:08:07] WARNING[12240]: chan_sip.c:3358 __sip_xmit: sip_xmit of 0x10249a30 (len 915) to (null) returned -1: Invalid argument
== Spawn extension (t1, 88800003-0000002d, 4) exited non-zero on ‘SIP/88800004-0000002e’
– Executing [h@t1:1] NoOp(“SIP/88800004-0000002e”, “Here from next priority we can add hangup logic”) in new stack
– Executing [h@t1:2] Hangup(“SIP/88800004-0000002e”, “”) in new stack
== Spawn extension (t1, h, 2) exited non-zero on ‘SIP/88800004-0000002e’

You will need to supply your dialplan if you want people to work out why you appear to passing a channel name where a device address is expected.

Also note that this is not a support forum.

Hi David,

Thanks for the response.

Here is the dial plan detail.
If you need any thing more please let me know.

[ctx-incoming]
;exten => _X.,1,Dial(SIP/91xxxxxxxxxx@sip.voip.com)
;exten => _.,1,Set(leg1=${EXTEN})
exten => _X.,1,AGI(AGI://localhost/leg1Dial.agi)

[ctx-leg2]
exten => _.,1,Set(leg2=${EXTEN})
exten => _.,n,AGI(AGI://localhost/leg2Dial.agi)
exten => _.,n,Hangup()
exten => h,1,Hangup()

[ctx-sip]
exten => _.,1,Set(leg1=0)
exten => _.,n,AGI(AGI://localhost/leg1Dial.agi)
exten => h,1,Hangup()

You have included neither context tt, nor the AGI script.

Hi David,

You can find extensions.conf and agi on below link.
http://a1softsolution.esy.es/source.zip

Thanks

David,

Can you please give me some idea?

You are making it too time consuming for me.