[asterisk-bugs] [JIRA] (ASTERISK-27003) chan_sip doesn't send CONNECTEDLINE info over sip trunk

Dmitry Melekhov (JIRA) noreply at issues.asterisk.org
Tue May 23 04:52:57 CDT 2017


    [ https://issues.asterisk.org/jira/browse/ASTERISK-27003?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=237094#comment-237094 ] 

Dmitry Melekhov commented on ASTERISK-27003:
--------------------------------------------

:-(
But may be it possible to get name from ISDN and number from dialplan?

Unfortunately this doesn't work:

exten => 6095,1,Set(CONNECTEDLINE(number,i)=1695)
exten => 6095,n,Dial(DAHDI/g1/1695)

and even this:
exten => 6095,1,Set(CONNECTEDLINE(all,i)="Test" <1695>)
exten => 6095,n,Dial(DAHDI/g1/1695)

only if I set  I option, then I see connected line info  from dialplan on my phone
exten => 6095,1,Set(CONNECTEDLINE(all,i)="Test" <1695>)
exten => 6095,n,Dial(DAHDI/g1/1695,,I)

i.e. if connected line info from ISDN is ignored.

So problem is that avaya PBX doesn't supply number, only name, and chan_sip needs both.
Can I somehow override this info from ISDN and add number to it (any fake number or empty is OK for me)?
There are some Dial options for callerid manipulations , but I don't see any for connected line, except for completely ignoring received info (I).

Thank you!

> chan_sip doesn't send CONNECTEDLINE info over sip trunk
> -------------------------------------------------------
>
>                 Key: ASTERISK-27003
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-27003
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/chan_sip/General
>    Affects Versions: 13.13.1
>         Environment: Centos 6 x86-64
>            Reporter: Dmitry Melekhov
>            Assignee: Unassigned
>            Severity: Minor
>         Attachments: myDebugLog, myDebugLog-asterisk, myDebugLog-ast-lud, myDebugLog-transit
>
>
> I need to translate CONNECTEDLINE info from one asterisk to another and then to ISDN.
> Here is how asterisks are connected in my test environment:
> {noformat}
> asterisk(192.168.22.19)---IP link--ast-lud(192.168.72.254)--ISDN PRI----PBX.
> {noformat}
> As PBX user I place call to ast-lud to following dial-plan
> {noformat}
> exten => 5085,1,Dial(SIP/6000 at asterisk)
> ;exten => 5085,1,Dial(OOH323/6000)
> exten => 5085,n,Hangup
> {noformat}
> asterisk on ast-lud:
> {noformat}
> [asterisk]
> type=friend
> host=192.168.22.19             
> insecure=port,invite
> nat=no                         
> canreinvite=yes        
> disallow=all
> ;allow=all             
> allow=alaw             
> allow=ulaw
> ;allow=g729
> dtmfmode=rfc2833
> context=asterisk
> trustrpid = yes
> sendrpid = yes
> {noformat}
> on asterisk:
> {noformat}
> [ast-lud]
> type=friend
> host=192.168.72.254             
> insecure=port,invite
> nat=no                          
> canreinvite=yes         
> disallow=all
> ;allow=all                    
> allow=alaw                      
> allow=ulaw
> ;allow=g729
> dtmfmode=rfc2833
> context=h323
> trustrpid = yes
> sendrpid = yes
> {noformat}
> And then dialplan is:
> {noformat}
> exten => 6000,1,Set(CHANNEL(language)=ru)
> exten => 6000,n,Set(CONNECTEDLINE(name,i)=Conf. 6000)
> exten => 6000,n,Set(CONNECTEDLINE(pres)=allowed)
> exten => 6000,n,Answer
> exten => 6000,n,Meetme(6000,TL(10800000:60000))
> exten => 6000,n,Hangup
> {noformat}
> But, as I can see from debug CONNECTEDLINE info is not even sent by asterisk- 
> I'll upload debug logs.
> If I use ooh323 to connect asterisks, then I see Conf. 6000 on my phone..



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list