naidu / telephone

Automatically exported from code.google.com/p/telephone
Other
0 stars 0 forks source link

phone sends no src-code to sip.provider #339

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
hello,

on asterisk, the phone did not send the source-number.
there must be same problems with registering itself.

sip-device:
| Jun 17 16:01:49 VERBOSE[7098] logger.c:
| -- Registered SIP 'bbb' at xx.yy.zz.aa port 51489 expires 300
| -- Saved useragent "Telephone 0.15.0" for peer bbb

sip*CLI> sip show peers
| Name/username Host         Dyn Nat ACL Port   Status
| aaa/aaa       192.168.0.1  D   N       10023  OK (72 ms)
| bbb           xx.yy.zz.aa  D   N       51489  OK (16 ms)
| ccc/ccc       10.3.3.1     D   N       5060   OK (122 ms)

/var/log/asterisk/debug:
| Jun 17 15:56:39 pbx.c: Function result is '(null)'
| Jun 17 15:56:39 pbx.c: Function result is '00431XXXXXX'
| Jun 17 15:56:39 pbx.c: Function result is 'SIP/ACC/00431XXXXXX'
| Jun 17 15:56:39 pbx.c: Function result is '2010-06-17 15:56:39'
| Jun 17 15:56:39 pbx.c: Function result is '4'
| Jun 17 15:56:39 pbx.c: Function result is '0'
| Jun 17 15:56:39 pbx.c: Function result is 'NO ANSWER'

'(null)' should be 'bbb'. only by this phone don't.

this will produce an open field in ${CDR(src)}:
|    00431XXXXXX SIP/ACC/00431XXXXXX 2010-06-17 15:56:39 4 0 NO ANSWERED

the normale output would be:
| bbb 00431XXXXXX SIP/ACC/00431XXXXXX 2010-06-17 15:56:39 4 0 NO ANSWERED

Original issue reported on code.google.com by vps.syst...@gmail.com on 28 Jun 2010 at 10:47

GoogleCodeExporter commented 9 years ago
What is 'bbb'? Display-name field?

Original comment by eofs...@gmail.com on 28 Jun 2010 at 11:57

GoogleCodeExporter commented 9 years ago
bbb is the username.

Original comment by vps.syst...@gmail.com on 29 Jun 2010 at 10:34

GoogleCodeExporter commented 9 years ago
What is src-code? Telephone registers at the registrar with the SIP URI, for 
example:
Contact: "John Smith" <sip:17771234567@192.168.1.10:56159>

Here "John Smith" is display-name, 17771234567 is username, 192.168.1.10 is 
host, 56159 is port number.

Original comment by eofs...@gmail.com on 19 Jul 2010 at 9:05